[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: allow NULL for object/array
From: |
gnunet |
Subject: |
[gnunet] branch master updated: allow NULL for object/array |
Date: |
Sun, 04 Jun 2023 01:31:52 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new a82c7af10 allow NULL for object/array
a82c7af10 is described below
commit a82c7af104e186fb92c15b709fb3ed838e871410
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jun 4 01:31:43 2023 +0200
allow NULL for object/array
---
src/json/json_helper.c | 4 ++++
1 file changed, 4 insertions(+)
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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: allow NULL for object/array,
gnunet <=