Commit 2d411d71 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Get the sense of string compares right.



git-svn-id: http://www.varnish-cache.org/svn/trunk@204 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent fb807eb5
......@@ -694,7 +694,7 @@ Cond_String(struct var *vp, struct tokenlist *tl)
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",
......
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