summaryrefslogtreecommitdiff
path: root/uservars.c
diff options
context:
space:
mode:
Diffstat (limited to 'uservars.c')
-rw-r--r--uservars.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uservars.c b/uservars.c
index 1a15706..965c6d6 100644
--- a/uservars.c
+++ b/uservars.c
@@ -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)