[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -allow packing with NULL field name
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -allow packing with NULL field name |
Date: |
Tue, 08 Feb 2022 00:11:54 +0100 |
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 801b48edc -allow packing with NULL field name
801b48edc is described below
commit 801b48edcf34f571b7ad7f99269ae683a1497a02
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Feb 8 00:11:48 2022 +0100
-allow packing with NULL field name
---
src/json/json_pack.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index 296f56104..cc1ca3e97 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -31,6 +31,12 @@ GNUNET_JSON_pack_ (struct GNUNET_JSON_PackSpec spec[])
{
json_t *ret;
+ if (NULL == spec[0].field_name)
+ {
+ ret = spec[0].object;
+ spec[0].object = NULL;
+ return ret;
+ }
ret = json_object ();
GNUNET_assert (NULL != ret);
for (unsigned int i = 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 packing with NULL field name,
gnunet <=