gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: -fix logging


From: gnunet
Subject: [gnunet] branch master updated: -fix logging
Date: Wed, 05 Jul 2023 09:42:39 +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 146b879bc -fix logging
146b879bc is described below

commit 146b879bcf2d0eee090f47171ca10a4478a85ffb
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jul 5 09:42:29 2023 +0200

    -fix logging
---
 src/json/json_pack.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index 9ffea7cb0..816373eaf 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -45,10 +45,13 @@ GNUNET_JSON_pack_ (struct GNUNET_JSON_PackSpec spec[])
   {
     if (NULL == spec[i].object)
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                  "NULL not allowed for `%s'\n",
-                  spec[i].field_name);
-      GNUNET_assert (spec[i].allow_null);
+      if (! spec[i].allow_null)
+      {
+        GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                    "NULL not allowed for `%s'\n",
+                    spec[i].field_name);
+        GNUNET_assert (0);
+      }
     }
     else
     {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]