aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-03 17:05:02 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-03 17:05:02 +0200
commitf50af5edddee3a5d7d353b3829829c00a16890cc (patch)
tree07fe3da2dd1c59de7ffa53e768b5c2db6122d22a /src
parent55bff52a2a38b9e768b929b4b6204ac02f074cbf (diff)
downloadgnunet-f50af5edddee3a5d7d353b3829829c00a16890cc.tar.gz
gnunet-f50af5edddee3a5d7d353b3829829c00a16890cc.zip
fix zero test
Diffstat (limited to 'src')
-rw-r--r--src/util/common_allocation.c5
1 files 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,
546 size_t n) 546 size_t n)
547{ 547{
548 const char *b = a; 548 const char *b = a;
549
549 for (size_t i = 0; i < n; i++) 550 for (size_t i = 0; i < n; i++)
550 if (b[i]) 551 if (b[i])
551 return 0; 552 return 1;
552 return 1; 553 return 0;
553} 554}
554 555
555 556