From 2d47270112f9e3bf7c8ddbcdad0e537d5f34423a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 6 Jan 2012 10:08:53 +0000 Subject: unposted: fix uninitialised variable warning in pcre --- ChangeLog | 7 ++++++- Src/Modules/pcre.c | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 086d9b385..e65cc4234 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-06 Peter Stephenson + + * Src/Modules/pcre.c (cond_pcre_match): unposted: fix (harmless) + warning with uninitialised variable. + 2012-01-05 Peter Stephenson * Christian Höltje: 30087: Functions/Prompts/promptinit: remove @@ -15832,5 +15837,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5556 $ +* $Revision: 1.5557 $ ***************************************************** diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c index 2e3556a8d..cb9f8ef57 100644 --- a/Src/Modules/pcre.c +++ b/Src/Modules/pcre.c @@ -354,6 +354,7 @@ cond_pcre_match(char **a, int id) unmetafy(rhre_plain, NULL); pcre_pat = NULL; ov = NULL; + ovsize = 0; if (isset(BASHREMATCH)) avar="BASH_REMATCH"; -- cgit 1.4.1