From e06cff587d6b98b0432e661832dc12d49bfb5ae9 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 18 Jun 2006 10:16:38 +0000 Subject: [PATCH] Get the sense of string compares right. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@204 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcl_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5