Clarify boolean expression
authorJens Georg <jensg@openismus.com>
Tue, 30 Jul 2013 06:43:24 +0000 (08:43 +0200)
committerJens Georg <jensg@openismus.com>
Tue, 30 Jul 2013 06:54:39 +0000 (08:54 +0200)
libgssdp/gssdp-client.c

index 048d5e6..876246c 100644 (file)
@@ -1266,7 +1266,7 @@ get_host_ip (GSSDPNetworkDevice *device)
                         continue;
 
                 /* Loopback and IPv6 interfaces go at the bottom on the list */
-                if (ifa->ifa_flags & IFF_LOOPBACK ||
+                if ((ifa->ifa_flags & IFF_LOOPBACK) ||
                     ifa->ifa_addr->sa_family == AF_INET6)
                         up_ifaces = g_list_append (up_ifaces, ifa);
                 else