From: Henrik Nordstrom Date: Sun, 8 Mar 2009 13:19:15 +0000 (+0100) Subject: Make GCC-4.4 happy X-Git-Tag: SQUID_3_2_0_1~1132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6ba45040f4271ed074d2fa13b3b480c086413e7;p=thirdparty%2Fsquid.git Make GCC-4.4 happy --- diff --git a/src/wccp2.cc b/src/wccp2.cc index bb34d44804..1382d27053 100644 --- a/src/wccp2.cc +++ b/src/wccp2.cc @@ -1173,7 +1173,9 @@ wccp2HandleUdp(int sock, void *not_used) /* Go through the data structure */ while (data_length > offset) { - header = (struct wccp2_item_header_t *) &wccp2_i_see_you.data[offset]; + char *data = wccp2_i_see_you.data; + + header = (struct wccp2_item_header_t *) &data[offset]; switch (ntohs(header->type)) { @@ -1392,6 +1394,7 @@ wccp2HandleUdp(int sock, void *not_used) for (num_caches = 0; num_caches < (int) ntohl(tmp); num_caches++) { /* Get a copy of the ip */ + memset(&cache_address, 0, sizeof(cache_address)); // Make GCC happy switch (Config.Wccp2.assignment_method) {