]> jfr.im git - irc/atheme/atheme.git/commitdiff
libathemecore/cidr: make the compiler happy
authorMax Teufel <redacted>
Sun, 6 Mar 2016 09:19:34 +0000 (10:19 +0100)
committerMax Teufel <redacted>
Sun, 6 Mar 2016 09:19:34 +0000 (10:19 +0100)
libathemecore/cidr.c

index dd0729740aa23bb979adc8a08ada9f3a6b90396e..b7c4001737dc495d9ef84b6e4fb212df960ab93b 100644 (file)
@@ -378,7 +378,7 @@ int valid_ip_or_mask(const char *src)
 
        int is_ipv6 = (strchr(ipaddr, ':') != NULL);
 
-       if (mask = strchr(ipaddr, '/'))
+       if ((mask = strchr(ipaddr, '/')))
        {
                *mask++ = '\0';