From: Amos Jeffries Date: Wed, 10 Oct 2012 00:57:33 +0000 (+1300) Subject: Fix using assignment as a condition without parentheses X-Git-Tag: SQUID_3_4_0_1~583 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7f03b4937a817d84254fda423879fe8a25d57b8;p=thirdparty%2Fsquid.git Fix using assignment as a condition without parentheses --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 08768200ee..dba1ce0734 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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 << "'");