From: Eric Haszlakiewicz Date: Wed, 13 Jun 2018 03:16:31 +0000 (-0400) Subject: Issue #419: document that NULL may be passed to json_object_put(). X-Git-Tag: json-c-0.14-20200419~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1c71097a1406e0c039942c0eebfdbda1336d3e7;p=json-c Issue #419: document that NULL may be passed to json_object_put(). --- diff --git a/json_object.h b/json_object.h index 30341bc..a026320 100644 --- a/json_object.h +++ b/json_object.h @@ -193,6 +193,7 @@ JSON_EXPORT struct json_object* json_object_get(struct json_object *obj); * Decrement the reference count of json_object and free if it reaches zero. * You must have ownership of obj prior to doing this or you will cause an * imbalance in the reference count. + * An obj of NULL may be passed; in that case this call is a no-op. * * @param obj the json_object instance * @returns 1 if the object was freed.