summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 2c11ae15f..94ecd06f8 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -933,8 +933,8 @@ GNUNET_ntoh_double (double d);
* entire memory being zero'ed out.
*/
#define GNUNET_is_zero(a) ({ \
- const typeof(*a) _z = { 0 }; \
- memcmp(a, \
+ static const typeof(*a) _z; \
+ memcmp((a), \
&_z, \
sizeof (_z)); })