From 16642c4cb25faae335591b39795c71dedbeb37f1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 17 Apr 2016 15:09:23 +0000 Subject: adding libgnunetcurl --- src/json/json.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/json') diff --git a/src/json/json.c b/src/json/json.c index aa74bfd48..a2d1a9608 100644 --- a/src/json/json.c +++ b/src/json/json.c @@ -46,6 +46,8 @@ GNUNET_JSON_parse (const json_t *root, unsigned int i; json_t *pos; + if (NULL == root) + return GNUNET_SYSERR; for (i=0;NULL != spec[i].parser;i++) { if (NULL == spec[i].field) -- cgit v1.2.3