r5537 - trunk/varnish-cache/lib/libvcl
phk at varnish-cache.org
phk at varnish-cache.org
Thu Nov 11 12:31:36 CET 2010
Author: phk
Date: 2010-11-11 12:31:35 +0100 (Thu, 11 Nov 2010)
New Revision: 5537
Modified:
trunk/varnish-cache/lib/libvcl/vcc_expr.c
Log:
Mark boolean constants as such.
Modified: trunk/varnish-cache/lib/libvcl/vcc_expr.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_expr.c 2010-11-11 10:11:52 UTC (rev 5536)
+++ trunk/varnish-cache/lib/libvcl/vcc_expr.c 2010-11-11 11:31:35 UTC (rev 5537)
@@ -442,8 +442,9 @@
vcc_Eval_BoolConst(struct vcc *tl, struct expr **e, const struct symbol *sym)
{
+ vcc_NextToken(tl);
*e = vcc_mk_expr(BOOL, "(0==%d)", sym->eval_priv == NULL ? 1 : 0);
- vcc_NextToken(tl);
+ (*e)->constant = 1;
}
/*--------------------------------------------------------------------
More information about the varnish-commit
mailing list