From: Jasen Betts Date: Fri, 18 Dec 2015 13:42:27 +0000 (+0000) Subject: Redis: fix server-specified-in-lookup X-Git-Tag: exim-4_87_RC2~1 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/42653575e8539e76698610e2fc36c5ebc653f074 Redis: fix server-specified-in-lookup Affects Bug 1745. Broken-by: 2d8d625b2b96 --- 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 */