util/service.c: Fix clang warning.
authorng0 <ng0@n0.is>
Fri, 12 Apr 2019 06:47:43 +0000 (06:47 +0000)
committerng0 <ng0@n0.is>
Fri, 12 Apr 2019 06:47:43 +0000 (06:47 +0000)
service.c:481:15: warning: suggest braces around initialization of subobject
      [-Wmissing-braces]
  while (0 != GNUNET_is_zero (&list[i].network))
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/util/service.c

index 4fd16f93d8386b1624f80e763167c8b1c642ee9b..3fe9b588373e6c44a2d4bb29ac27293242e628c1 100644 (file)
@@ -478,7 +478,7 @@ check_ipv6_listed (const struct GNUNET_STRINGS_IPv6NetworkPolicy *list,
     return GNUNET_NO;
   i = 0;
 NEXT:
-  while (0 != GNUNET_is_zero (&list[i].network))
+  while (0 != (GNUNET_is_zero (&list[i].network)))
   {
     for (j = 0; j < sizeof (struct in6_addr) / sizeof (int); j++)
       if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) !=