Mailing List Archive

r204 - trunk/varnish-cache/lib/libvcl
Author: phk
Date: 2006-06-18 12:16:38 +0200 (Sun, 18 Jun 2006)
New Revision: 204

Modified:
trunk/varnish-cache/lib/libvcl/vcl_compile.c
Log:
Get the sense of string compares right.



Modified: trunk/varnish-cache/lib/libvcl/vcl_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcl_compile.c 2006-06-18 10:12:38 UTC (rev 203)
+++ trunk/varnish-cache/lib/libvcl/vcl_compile.c 2006-06-18 10:16:38 UTC (rev 204)
@@ -694,7 +694,7 @@
case T_NEQ:
I(tl);
sbuf_printf(tl->fc, "%sstrcmp(%s, ",
- tl->t->tok == T_EQ ? "" : "!", vp->cname);
+ tl->t->tok == T_EQ ? "!" : "", vp->cname);
NextToken(tl);
ExpectErr(tl, CSTR);
sbuf_printf(tl->fc, "%*.*s)\n",