From: wessels <> Date: Fri, 1 Dec 2000 03:28:32 +0000 (+0000) Subject: Must memset() this static variable before using. X-Git-Tag: SQUID_3_0_PRE1~1753 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6c6cd66e271552f51bda0fa5784930fb5dce839;p=thirdparty%2Fsquid.git Must memset() this static variable before using. --- diff --git a/src/fqdncache.cc b/src/fqdncache.cc index cebe4dc45c..3c28fe3ccc 100644 --- a/src/fqdncache.cc +++ b/src/fqdncache.cc @@ -1,6 +1,6 @@ /* - * $Id: fqdncache.cc,v 1.142 2000/10/31 23:48:13 wessels Exp $ + * $Id: fqdncache.cc,v 1.143 2000/11/30 20:28:32 wessels Exp $ * * DEBUG: section 35 FQDN Cache * AUTHOR: Harvest Derived @@ -206,6 +206,7 @@ fqdncacheParse(const char *inbuf) char *token; static fqdncache_entry f; int ttl; + memset(&f, '\0', sizeof(f)); f.expires = squid_curtime; f.flags.negcached = 1; if (inbuf == NULL) {