changeset 39317:a7f40b000353

* etags.c (analyse_regex): If regex_arg is NULL, return immediately after a call to free_patterns.
author Francesco Potortì <pot@gnu.org>
date Mon, 17 Sep 2001 15:47:23 +0000
parents f6a4184f6285
children 532c538efc45
files lib-src/etags.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Mon Sep 17 14:47:01 2001 +0000
+++ b/lib-src/etags.c	Mon Sep 17 15:47:23 2001 +0000
@@ -32,7 +32,7 @@
  *	Francesco Potort́ <pot@gnu.org> 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 @@
      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])