From 86f1ca6000f81be5b3401a2ec102521cb612a518 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 30 Sep 2015 13:28:02 +0000 Subject: [PATCH] Fix uninitialized estr (Holger Seidel) --- tw.comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tw.comp.c b/tw.comp.c index 03da837..4b4d2ce 100644 --- a/tw.comp.c +++ b/tw.comp.c @@ -251,7 +251,7 @@ static int tw_match(const Char *str, const Char *pat, int exact) { const Char *estr; - int rv = exact ? Gmatch(str, pat) : Gnmatch(str, pat, &estr); + int rv = exact ? Gmatch(estr = str, pat) : Gnmatch(str, pat, &estr); #ifdef TDEBUG xprintf("G%smatch(%s, ", exact ? "" : "n", short2str(str)); xprintf("%s, ", short2str(pat)); -- 2.5.5