Commit b90f263e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't assert the format until we have done the error check.

The ticket (#799) probably triggers this by using std.random()
without a "import std" statement.

Fixes: #799



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5458 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 38d7ebb0
......@@ -663,8 +663,8 @@ vcc_expr_mul(struct vcc *tl, struct expr **e, enum var_type fmt)
tk = tl->t;
vcc_NextToken(tl);
vcc_expr4(tl, &e2, f2);
assert(e2->fmt == f2);
ERRCHK(tl);
assert(e2->fmt == f2);
if (tk->tok == '*')
*e = vcc_expr_edit(f3, "(\v1*\v2)", *e, e2);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment