about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-02 11:13:14 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-02 11:13:14 +0000
commite4cdad9700342b4dbc1837307580134eee274f33 (patch)
treec4ee72ae489fd10b53a25fdb28b2659f4a018830 /Src
parent7f03c3d851c571d86d18c701d882c13ad5d06c6c (diff)
downloadzsh-e4cdad9700342b4dbc1837307580134eee274f33.tar.gz
zsh-e4cdad9700342b4dbc1837307580134eee274f33.tar.xz
zsh-e4cdad9700342b4dbc1837307580134eee274f33.zip
unposted: regex fix-ups: missing doc file plus pointer fixes
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/pcre.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c
index 21988e05c..d067d8949 100644
--- a/Src/Modules/pcre.c
+++ b/Src/Modules/pcre.c
@@ -139,7 +139,7 @@ bin_pcre_study(char *nam, UNUSED(char **args), UNUSED(Options ops), UNUSED(int f
 static int
 zpcre_get_substrings(char *arg, int *ovec, int ret, char *matchvar, char *substravar, int matchedinarr)
 {
-    char **captures, **match_all, **matches;
+    char **captures, *match_all, **matches;
     int capture_start = 1;
 
     if (matchedinarr)
@@ -227,7 +227,8 @@ cond_pcre_match(char **a, int id)
 
     lhstr = cond_str(a,0,0);
     rhre = cond_str(a,1,0);
-    pcre_pat = ov = NULL;
+    pcre_pat = NULL;
+    ov = NULL;
 
     if (isset(BASHREMATCH))
 	avar="BASH_REMATCH";