]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix if assignment warning
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Aug 2011 08:10:13 +0000 (02:10 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 2 Aug 2011 08:10:13 +0000 (02:10 -0600)
src/cache_cf.cc

index ca0eb2320a4f6f50e114384a229cf2b53c4d7ac4..c47611ee4eff3a76eec9935354add228523d9ebf 100644 (file)
@@ -3112,7 +3112,7 @@ parse_http_port_specification(http_port_list * s, char *token)
         if (!Ip::EnableIpv6)
             s->s.SetIPv4();
         debugs(3, 3, "http(s)_port: found Listen on wildcard address: *:" << s->s.GetPort() );
-    } else if ( s->s = host ) { /* check/parse numeric IPA */
+    } else if ( (s->s = host) ) { /* check/parse numeric IPA */
         s->s.SetPort(port);
         if (!Ip::EnableIpv6)
             s->s.SetIPv4();