On Wed, 8 Aug 2018 14:48:53 +0300 "Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote: > On 8.08.2018 04:21, Steven Rostedt wrote: > >> + > >> + /* Create a Json array and fill the Id values into it. */ > >> + jfilter_data = json_object_new_array(); > >> + if (!jfilter_data) > > Hmm, can json_object_put() take a NULL pointer? > > > > Yes, see here: > > https://github.com/json-c/json-c/blob/master/json_object.c#L185 > Sadly they don't appear to document this fact :-/ http://json-c.github.io/json-c/json-c-0.12/doc/html/json__object_8h.html#a1bb50e2d17832c404c3d5f13fbde5bf5 -- Steve