diff options
author | Michael Clark <michael@metaparadigm.com> | 2009-04-27 08:19:27 +0000 |
---|---|---|
committer | Michael Clark <michael@metaparadigm.com> | 2009-04-27 08:19:27 +0000 |
commit | 6f70e44b7d2d355d3a9c5c9e2d12133342d9b8ed (patch) | |
tree | 2a3c54b518f46600245a72eef500c42d73dbf668 /json_object.c | |
parent | 95f55a761c9ad640cbad9f84627575e7b5a76fe1 (diff) |
Fix json_object_get_boolean to return false for empty string
Spotted by Vitaly Kruglikov, Vitaly dot Kruglikov at palm dot com
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@35 327403b1-1117-474d-bef2-5cb71233fd97
Diffstat (limited to 'json_object.c')
-rw-r--r-- | json_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json_object.c b/json_object.c index 6c20579..e412e4f 100644 --- a/json_object.c +++ b/json_object.c @@ -309,7 +309,7 @@ boolean json_object_get_boolean(struct json_object *jso) case json_type_string: return (strlen(jso->o.c_string) != 0); default: - return TRUE; + return FALSE; } } |