From 76fecdffbb270e0724ac3d13d6df836723389a83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Mon, 17 Sep 2001 15:47:23 +0000 Subject: [PATCH] * etags.c (analyse_regex): If regex_arg is NULL, return immediately after a call to free_patterns. --- lib-src/etags.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index def6f56c8d4..f0c613f232b 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -32,7 +32,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ * Francesco Potortì has maintained it since 1993. */ -char pot_etags_version[] = "@(#) pot revision number is 14.20"; +char pot_etags_version[] = "@(#) pot revision number is 14.21"; #define TRUE 1 #define FALSE 0 @@ -5085,7 +5085,10 @@ analyse_regex (regex_arg, ignore_case) bool ignore_case; { if (regex_arg == NULL) - free_patterns (); /* --no-regex: remove existing regexps */ + { + free_patterns (); /* --no-regex: remove existing regexps */ + return; + } /* A real --regexp option or a line in a regexp file. */ switch (regex_arg[0]) -- 2.39.2