From: Amos Jeffries Date: Wed, 17 Oct 2012 00:18:33 +0000 (-0600) Subject: Fix using assignment as a condition without parentheses X-Git-Tag: SQUID_3_2_3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be0cc330d9e3eabe4b004ca9f6381de407d34f9f;p=thirdparty%2Fsquid.git Fix using assignment as a condition without parentheses --- diff --git a/src/ipcache.cc b/src/ipcache.cc index a782c0bbe0..633c5a5b14 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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 << "'");