]> err.no Git - varnish/commitdiff
Add missing ERRCHK() to suppress subsequent syntax errors.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 14 Jan 2008 08:55:58 +0000 (08:55 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 14 Jan 2008 08:55:58 +0000 (08:55 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2340 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_parse.c

index 4e8b2ff9efd5ce548827956b028d8603c1b76829..cd9fe7211302fe7bdb1d2eea81cc59d7e32c221d 100644 (file)
@@ -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);