CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/07/13 22:09:54
Index: src/input.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/input.c,v
retrieving revision 1.1.1.1.2.8
retrieving revision 1.1.1.1.2.9
diff -u -b -r1.1.1.1.2.8 -r1.1.1.1.2.9
--- src/input.c 23 Jun 2006 13:06:10 -0000 1.1.1.1.2.8
+++ src/input.c 13 Jul 2006 22:09:54 -0000 1.1.1.1.2.9
@@ -593,10 +593,7 @@
ecomm.length = strlen (ecomm.string);
#ifdef ENABLE_CHANGEWORD
- if (user_word_regexp)
set_word_regexp (user_word_regexp);
- else
- set_word_regexp (DEFAULT_WORD_REGEXP);
#endif
}
@@ -649,7 +646,7 @@
const char *msg;
struct re_pattern_buffer new_word_regexp;
- if (!strcmp (regexp, DEFAULT_WORD_REGEXP))
+ if (!*regexp || !strcmp (regexp, DEFAULT_WORD_REGEXP))
{
default_word_regexp = TRUE;
return;