]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix using assignment as a condition without parentheses
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 17 Oct 2012 00:18:33 +0000 (18:18 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 17 Oct 2012 00:18:33 +0000 (18:18 -0600)
src/ipcache.cc

index a782c0bbe06b727ce24bb31693747ebca7ff18ba..633c5a5b14ff4293f1b0e297e0309d7f340c459d 100644 (file)
@@ -429,7 +429,7 @@ ipcacheParse(ipcache_entry *i, const char *inbuf)
         memset(i->addrs.bad_mask, 0, sizeof(unsigned char) * ipcount);
 
         for (j = 0, k = 0; k < ipcount; ++k) {
-            if ( i->addrs.in_addrs[j] = A[k] )
+            if ((i->addrs.in_addrs[j] = A[k]))
                 ++j;
             else
                 debugs(14, 1, "ipcacheParse: Invalid IP address '" << A[k] << "' in response to '" << name << "'");