]> granicus.if.org Git - json-c/commit
Fixed json_object_object_add().
authorAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>
Tue, 8 Jan 2013 13:24:21 +0000 (14:24 +0100)
committerAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>
Tue, 8 Jan 2013 13:24:21 +0000 (14:24 +0100)
commit2be921d88376e78f84d79aafa6db2714da804e59
tree1ac0e1fc7f4a3a8a8d3109830e840782465fcd2a
parent85da28c53420659620bad73943436bb5115c2a4a
Fixed json_object_object_add().

* Return value of json_object_object_add() changed from void to int.
  Return value now indicates success or failure.

* Check whether allocations are successful.

* Do not exit program from within the library.
json_object.c
json_object.h
linkhash.c
linkhash.h