gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: fix zero test


From: gnunet
Subject: [gnunet] branch master updated: fix zero test
Date: Fri, 03 Apr 2020 17:09:35 +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 f50af5edd fix zero test
f50af5edd is described below

commit f50af5edddee3a5d7d353b3829829c00a16890cc
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Apr 3 17:05:02 2020 +0200

    fix zero test
---
 src/util/common_allocation.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index 5945fdcde..fd91e23b2 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -546,10 +546,11 @@ GNUNET_is_zero_ (const void *a,
                  size_t n)
 {
   const char *b = a;
+
   for (size_t i = 0; i < n; i++)
     if (b[i])
-      return 0;
-  return 1;
+      return 1;
+  return 0;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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