tcsh-6.19.00-019-fix-uninitialized-estr.patch added

> Fix uninitialized estr (Holger Seidel)
This commit is contained in:
David Kaspar [Dee'Kej] 2016-05-03 15:48:01 +02:00
parent d8b6dd5802
commit 31fe79e534
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
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

View File

@ -47,6 +47,7 @@ Patch015: tcsh-6.19.00-015-set-LC_COLLATE-to-C-and-add-HTML-makefile.patch
Patch016: tcsh-6.19.00-016-do-not-quote-name-expanded-by-completion.patch
Patch017: tcsh-6.19.00-017-fix-for-finnish-translations.patch
Patch018: tcsh-6.19.00-018-add-noclobber-and-ask-options.patch
Patch019: tcsh-6.19.00-019-fix-uninitialized-estr.patch
# Downstream patches -- these should be always included when doing rebase:
@ -186,6 +187,7 @@ fi
tcsh-6.19.00-016-do-not-quote-name-expanded-by-completion.patch
tcsh-6.19.00-017-fix-for-finnish-translations.patch
tcsh-6.19.00-018-add-noclobber-and-ask-options.patch
tcsh-6.19.00-019-fix-uninitialized-estr.patch
* Thu Apr 21 2016 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 6.19.00-6
- Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream