aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-17 15:09:23 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-17 15:09:23 +0000
commit16642c4cb25faae335591b39795c71dedbeb37f1 (patch)
tree99eced0e91cb1455f4dc5afd1fd3918259aa5dd3 /src/json
parentda7b8273d9f2229fe163ef4fbdcf046fb6227b73 (diff)
downloadgnunet-16642c4cb25faae335591b39795c71dedbeb37f1.tar.gz
gnunet-16642c4cb25faae335591b39795c71dedbeb37f1.zip
adding libgnunetcurl
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json.c2
1 files changed, 2 insertions, 0 deletions
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,
46 unsigned int i; 46 unsigned int i;
47 json_t *pos; 47 json_t *pos;
48 48
49 if (NULL == root)
50 return GNUNET_SYSERR;
49 for (i=0;NULL != spec[i].parser;i++) 51 for (i=0;NULL != spec[i].parser;i++)
50 { 52 {
51 if (NULL == spec[i].field) 53 if (NULL == spec[i].field)