tcsh/tcsh-6.19.00-019-fix-uninitialized-estr.patch
David Kaspar [Dee'Kej] 31fe79e534 tcsh-6.19.00-019-fix-uninitialized-estr.patch added
> Fix uninitialized estr (Holger Seidel)
2016-05-03 17:11:23 +02:00

26 lines
741 B
Diff

From 86f1ca6000f81be5b3401a2ec102521cb612a518 Mon Sep 17 00:00:00 2001
From: christos <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