about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Src/Modules/pcre.c1
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 086d9b385..e65cc4234 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-06  Peter Stephenson  <pws@csr.com>
+
+	* Src/Modules/pcre.c (cond_pcre_match): unposted: fix (harmless)
+	warning with uninitialised variable.
+
 2012-01-05  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 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";