]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix logformat token initialization
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 20 Aug 2011 07:57:17 +0000 (01:57 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 20 Aug 2011 07:57:17 +0000 (01:57 -0600)
src/format/Tokens.h

index b37ec9187a519584dbcdd696012783598e03f75f..aef979551de6480cc8101e6d7e7a4a379bb5bfa8 100644 (file)
@@ -177,7 +177,16 @@ enum Quoting {
 class Token
 {
 public:
-    Token() {};
+    Token() : type(LFT_NONE),
+            width(0),
+            precision(0),
+            quote(LOG_QUOTE_NONE),
+            left(0),
+            space(0),
+            zero(0),
+            divisor(0),
+            next(NULL)
+    { data.string = NULL; };
     ~Token();
 
     /** parses a single token. Returns the token length in characters,