summaryrefslogtreecommitdiff
path: root/ifparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ifparser.c')
-rw-r--r--ifparser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ifparser.c b/ifparser.c
index c53d6d1..631b4f0 100644
--- a/ifparser.c
+++ b/ifparser.c
@@ -202,7 +202,7 @@ parse_character(IfParser *g, const char *cp, long *valp)
static const char *
parse_value(IfParser *g, const char *cp, long *valp)
{
- const char *var, *varend;
+ const char *var;
*valp = 0;
@@ -286,6 +286,8 @@ parse_value(IfParser *g, const char *cp, long *valp)
else if (!isvarfirstletter(*cp))
return CALLFUNC(g, handle_error) (g, cp, "variable or number");
else {
+ const char *varend;
+
DO(cp = parse_variable(g, cp, &var));
varend = cp;
SKIPSPACE(cp);