diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-06-06 21:21:51 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-06-06 21:21:51 +0200 |
commit | 03c4d4bee3eacf8cd938cc38f07e85a8fa68308d (patch) | |
tree | 66c829f9d30f6d2d7573c84367bd8ed6f0145b00 | |
parent | 213998ecae46b729333d7e5a42ae06cf8af69d41 (diff) | |
parent | a82c7af104e186fb92c15b709fb3ed838e871410 (diff) |
Merge branch 'master' of git+ssh://git.gnunet.org/gnunet
-rw-r--r-- | src/json/json_helper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index 61257e62a..515cc4c7f 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -368,6 +368,8 @@ parse_object_const (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec) { + if (NULL == root) + return GNUNET_OK; if (! json_is_object (root)) { GNUNET_break_op (0); @@ -409,6 +411,8 @@ parse_array_const (void *cls, json_t *root, struct GNUNET_JSON_Specification *spec) { + if (NULL == root) + return GNUNET_OK; if (! json_is_array (root)) { GNUNET_break_op (0); |