]> err.no Git - varnish/commitdiff
Get the sense of string compares right.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 18 Jun 2006 10:16:38 +0000 (10:16 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 18 Jun 2006 10:16:38 +0000 (10:16 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@204 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcl_compile.c

index f1c734345549d58a2c1232db10302f03032a84c2..a5b104b98ec44bab0020cbe36a28e34132f8058c 100644 (file)
@@ -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",