From e2b9d8d181b3994c4357a2f94545046ea3f1d3ab Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 19 Jan 2009 08:26:21 +0000 Subject: 26362: avoid calling regfree() on uninitialized regex_t. --- Src/Modules/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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) -- cgit 1.4.1