diff options
author | Francesco Potortì <pot@gnu.org> | 1997-03-17 10:25:53 +0000 |
---|---|---|
committer | Francesco Potortì <pot@gnu.org> | 1997-03-17 10:25:53 +0000 |
commit | d7d8bc9c08ab69ddba1801a325ebf4d574471a12 (patch) | |
tree | 794d88a00b282099eb652c2c8287c2ffdaff7bf5 /lib-src | |
parent | c84f3bd765bf15320e979bed40d0e15c459e4dec (diff) | |
download | emacs-d7d8bc9c08ab69ddba1801a325ebf4d574471a12.tar.gz |
* etags.c (add_regex): reset *putbuf before using it.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/etags.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 0120226b38c..d05962503ec 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -31,7 +31,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ * Francesco Potorti` (F.Potorti@cnuce.cnr.it) is the current maintainer. */ -char pot_etags_version[] = "@(#) pot revision number is 11.80"; +char pot_etags_version[] = "@(#) pot revision number is 11.82"; #define TRUE 1 #define FALSE 0 @@ -86,7 +86,7 @@ extern int errno; #endif /* ETAGS_REGEXPS */ /* Define CTAGS to make the program "ctags" compatible with the usual one. - Let it undefined to make the program "etags", which makes emacs-style + Leave it undefined to make the program "etags", which makes emacs-style tag tables and tags typedefs, #defines and struct/union/enum by default. */ #ifdef CTAGS # undef CTAGS @@ -3973,7 +3973,7 @@ add_regex (regexp_pattern) { char *name; const char *err; - struct re_pattern_buffer *patbuf; + struct re_pattern_buffer *patbuf, patbuf_init = { 0 }; if (regexp_pattern == NULL) { @@ -4002,10 +4002,7 @@ add_regex (regexp_pattern) (void) scan_separators (name); patbuf = xnew (1, struct re_pattern_buffer); - patbuf->translate = NULL; - patbuf->fastmap = NULL; - patbuf->buffer = NULL; - patbuf->allocated = 0; + *patbuf = patbuf_init; err = re_compile_pattern (regexp_pattern, strlen (regexp_pattern), patbuf); if (err != NULL) |