Re: [PATCH 2/2] kernel-shark-qt: Add Json I/O for filter configurations.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux