diff options
| author | Wayne Davison <wayned@users.sourceforge.net> | 2009-01-19 08:26:21 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@users.sourceforge.net> | 2009-01-19 08:26:21 +0000 |
| commit | e2b9d8d181b3994c4357a2f94545046ea3f1d3ab (patch) | |
| tree | d2425c07ad41efa0789a3af25f2fefbcc602d255 /Src/Modules | |
| parent | Fixed a few compiler warnings. (diff) | |
| download | zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.gz zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.bz2 zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.lz zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.xz zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.tar.zst zsh-e2b9d8d181b3994c4357a2f94545046ea3f1d3ab.zip | |
26362: avoid calling regfree() on uninitialized regex_t.
Diffstat (limited to 'Src/Modules')
| -rw-r--r-- | Src/Modules/regex.c | 2 |
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) |
