From 1c3534c1d0fa58b0c557bc6a2c31ef3b14696e41 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 14 Jan 2008 08:55:58 +0000 Subject: [PATCH] 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 --- varnish-cache/lib/libvcl/vcc_parse.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5