]> granicus.if.org Git - json-c/commitdiff
Issue #419: document that NULL may be passed to json_object_put().
authorEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 13 Jun 2018 03:16:31 +0000 (23:16 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 13 Jun 2018 03:16:31 +0000 (23:16 -0400)
json_object.h

index 30341bcdb7b1fc58c00176b3c31e0a7b5ca1465d..a026320366b369333ad4c13ef4269778667e2b42 100644 (file)
@@ -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.