X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=blobdiff_plain;f=src%2Fvalue.c;fp=src%2Fvalue.c;h=937aa955fd84903e9940fa5e8d02742df0b9e163;hp=123c7c0149fe2d2de97bf19f704571329795a588;hb=6ecba848171f48d0b3806dbc1aa306be8e69bc82;hpb=b90ed1accb3fcdf1111dbe33a2ce4519eb6e5d0c diff --git a/src/value.c b/src/value.c index 123c7c0..937aa95 100644 --- a/src/value.c +++ b/src/value.c @@ -91,7 +91,7 @@ size_t json_object_size(const json_t *json) json_object_t *object; if(!json_is_object(json)) - return -1; + return 0; object = json_to_object(json); return object->hashtable.size;