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

index 08768200eea0430c515fa451647cbcc381b057fd..dba1ce0734c7439b0228411125645caa7377dc6b 100644 (file)
@@ -434,7 +434,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, DBG_IMPORTANT, "ipcacheParse: Invalid IP address '" << A[k] << "' in response to '" << name << "'");