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