about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2009-01-19 08:26:21 +0000
committerWayne Davison <wayned@users.sourceforge.net>2009-01-19 08:26:21 +0000
commite2b9d8d181b3994c4357a2f94545046ea3f1d3ab (patch)
treed2425c07ad41efa0789a3af25f2fefbcc602d255 /Src
parent36375b59118bad3cefeda373805f6f364818b46a (diff)
downloadzsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.gz
zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.xz
zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.zip
26362: avoid calling regfree() on uninitialized regex_t.
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/regex.c b/Src/Modules/regex.c
index 0051c6df0..8a9f3e608 100644
--- a/Src/Modules/regex.c
+++ b/Src/Modules/regex.c
@@ -120,7 +120,7 @@ zcond_regex_match(char **a, int id)
 	break;
     default:
 	DPUTS(1, "bad regex option");
-	break;
+	return 0; /* nothing to cleanup, especially not "re". */
     }
 
     if (matches)