From: phk Date: Mon, 14 Jan 2008 08:55:58 +0000 (+0000) Subject: Add missing ERRCHK() to suppress subsequent syntax errors. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3534c1d0fa58b0c557bc6a2c31ef3b14696e41;p=varnish Add missing ERRCHK() to suppress subsequent syntax errors. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2340 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_parse.c b/varnish-cache/lib/libvcl/vcc_parse.c index 4e8b2ff9..cd9fe721 100644 --- a/varnish-cache/lib/libvcl/vcc_parse.c +++ b/varnish-cache/lib/libvcl/vcc_parse.c @@ -189,6 +189,7 @@ vcc_TimeVal(struct tokenlist *tl) double v, sc; v = vcc_DoubleVal(tl); + ERRCHK(tl); ExpectErr(tl, ID); sc = TimeUnit(tl); Fb(tl, 0, "(%g * %g)", v, sc); @@ -200,6 +201,7 @@ vcc_SizeVal(struct tokenlist *tl) double v, sc; v = vcc_DoubleVal(tl); + ERRCHK(tl); ExpectErr(tl, ID); sc = SizeUnit(tl); Fb(tl, 0, "(%g * %g)", v, sc); @@ -211,6 +213,7 @@ vcc_RateVal(struct tokenlist *tl) double v, sc; v = vcc_DoubleVal(tl); + ERRCHK(tl); ExpectErr(tl, ID); sc = RateUnit(tl); Fb(tl, 0, "(%g * %g)", v, sc);