(The recent change that moved the compiler into its own subprocess
eliminates risk that a compiler error causes the management process
to die, you just do not get a sensible syntax error).
Fixes: #417
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3546
d4fa192b-c00b-0410-8231-
f00ffab90ce4
int i;
Expect(tl, CSTR);
+ if (tl->err)
+ return (NULL);
memset(&t, 0, sizeof t);
i = regcomp(&t, tl->t->dec, REG_EXTENDED | (sub ? 0 : REG_NOSUB));
if (i != 0) {
Fb(tl, 0, "VRT_regsub(sp, %d, ", all);
Expect(tl, '(');
+ if (tl->err)
+ return (0);
vcc_NextToken(tl);
if (!vcc_StringVal(tl)) {
}
Expect(tl, ',');
+ if (tl->err)
+ return (0);
vcc_NextToken(tl);
Expect(tl, CSTR);
+ if (tl->err)
+ return (0);
p = vcc_regexp(tl, 1);
vcc_NextToken(tl);
Fb(tl, 0, ", %s, ", p);
Expect(tl, ',');
+ if (tl->err)
+ return (0);
vcc_NextToken(tl);
if (!vcc_StringVal(tl)) {
}
Expect(tl, ')');
+ if (tl->err)
+ return (0);
vcc_NextToken(tl);
Fb(tl, 0, ")");