summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15d9a10)
raw | patch | inline | side by side (parent: 15d9a10)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 10 Apr 2014 15:57:44 +0000 (17:57 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 10 Apr 2014 15:57:44 +0000 (17:57 +0200) |
That is, allow minimalistic objects which only have a name.
src/core/object.c | patch | blob | history |
diff --git a/src/core/object.c b/src/core/object.c
index 177ac4c3ada9a76009805187d0a0cd4eda322b9e..9101918654379a1ff41491df64187d399468d186 100644 (file)
--- a/src/core/object.c
+++ b/src/core/object.c
{
sdb_object_t *obj;
- if (type.size <= sizeof(sdb_object_t))
+ if (type.size < sizeof(sdb_object_t))
return NULL;
obj = malloc(type.size);