]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix uninitialized members in rev.12620
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 Feb 2013 12:23:31 +0000 (05:23 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 Feb 2013 12:23:31 +0000 (05:23 -0700)
 Detected by Coverity Scan. Issue 971423

src/acl/Acl.h

index 5e19ee4983e3686f4c3300698b5b16dab43e7bdb..e7ae5af6f372641b0b49db1a4cc92e40bc205aa0 100644 (file)
@@ -104,7 +104,7 @@ public:
     static ACL* FindByName(const char *name);
 
     ACL();
-    explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), flags(flgs) {}
+    explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), next(NULL), flags(flgs) { memset(name, '\0', sizeof(name)); }
     virtual ~ACL();
     virtual ACL *clone()const = 0;
     virtual void parse() = 0;