]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Must memset() this static variable before using.
authorwessels <>
Fri, 1 Dec 2000 03:28:32 +0000 (03:28 +0000)
committerwessels <>
Fri, 1 Dec 2000 03:28:32 +0000 (03:28 +0000)
src/fqdncache.cc

index cebe4dc45c1941265a83520c9ec5ccadd41e908e..3c28fe3ccc3d5fe600259107512973bb1d98c722 100644 (file)
@@ -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) {