From: Francesco Chemolli Date: Sun, 12 Jan 2014 02:14:21 +0000 (-0700) Subject: Document and enforce invariant on Format::Token.divisor X-Git-Tag: SQUID_3_4_3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad957cd180b65aa37f941973677624c52b65984;p=thirdparty%2Fsquid.git Document and enforce invariant on Format::Token.divisor --- diff --git a/src/format/Token.h b/src/format/Token.h index 052cf80b41..f8b3c62264 100644 --- a/src/format/Token.h +++ b/src/format/Token.h @@ -35,7 +35,7 @@ public: left(false), space(false), zero(false), - divisor(0), + divisor(1), next(NULL) { data.string = NULL; } @@ -68,7 +68,7 @@ public: bool left; bool space; bool zero; - int divisor; + int divisor; // class invariant: MUST NOT be zero. Token *next; /* todo: move from linked list to array */ private: