From: phk Date: Sun, 18 Jun 2006 10:16:38 +0000 (+0000) Subject: Get the sense of string compares right. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06cff587d6b98b0432e661832dc12d49bfb5ae9;p=varnish Get the sense of string compares right. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@204 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcl_compile.c b/varnish-cache/lib/libvcl/vcl_compile.c index f1c73434..a5b104b9 100644 --- a/varnish-cache/lib/libvcl/vcl_compile.c +++ b/varnish-cache/lib/libvcl/vcl_compile.c @@ -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",