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  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

Thanks!
Yordan



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

  Powered by Linux