diff options
Diffstat (limited to 'uservars.c')
-rw-r--r-- | uservars.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -41,6 +41,7 @@ string cPlugconfdirVar::dir = ""; cUserVar::cUserVar() { oldEvent = NULL; + oldescapeStrings = false; } string cUserVar::Evaluate(const cEvent* e, bool escapeStrings) @@ -315,7 +316,8 @@ void cUserVar::ResetCache() // cUserVarLine bool cUserVarLine::Parse(char *s) { - if (s && s[0] == '#') + if (!s) return false; + if (s[0] == '#') return true; char *p = strchr(s, '='); if (p) |