projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55bff52
)
fix zero test
author
Christian Grothoff
<christian@grothoff.org>
Fri, 3 Apr 2020 15:05:02 +0000
(17:05 +0200)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 3 Apr 2020 15:05:02 +0000
(17:05 +0200)
src/util/common_allocation.c
patch
|
blob
|
history
diff --git
a/src/util/common_allocation.c
b/src/util/common_allocation.c
index 5945fdcdef283ab965609f196b3b2f402901338c..fd91e23b21d4a670069d46d26f7ec894a55b4ca4 100644
(file)
--- 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
;
}