From 42653575e8539e76698610e2fc36c5ebc653f074 Mon Sep 17 00:00:00 2001 From: Jasen Betts Date: Fri, 18 Dec 2015 13:42:27 +0000 Subject: [PATCH] Redis: fix server-specified-in-lookup Affects Bug 1745. Broken-by: 2d8d625b2b96 --- src/src/lookups/redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/src/lookups/redis.c b/src/src/lookups/redis.c index 91bd41fee..5f677ff06 100644 --- a/src/src/lookups/redis.c +++ b/src/src/lookups/redis.c @@ -209,13 +209,13 @@ if(sdata[1]) { uschar * argv[32]; int i; - const uschar * s; + const uschar * s = command; int siz, ptr; uschar c; while (isspace(*s)) s++; - for (s = command, i = 0; *s && i < nele(argv); i++) + for (i = 0; *s && i < nele(argv); i++) { for (argv[i] = NULL, siz = ptr = 0; (c = *s) && !isspace(c); s++) if (c != '\\' || *++s) /* backslash protects next char */ -- 2.25.1