aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-15 11:43:04 -0700
committerPaul Eggert2011-03-15 11:43:04 -0700
commitda053e48b16db6fa8dedd72d9d7f80c392259193 (patch)
tree74b68758f893030b98e906398f735c3db25d8229 /src
parent952db0d7ad3872dd675d23f7e60ae3298a8d8d52 (diff)
downloademacs-da053e48b16db6fa8dedd72d9d7f80c392259193.tar.gz
emacs-da053e48b16db6fa8dedd72d9d7f80c392259193.zip
* regex.c (regex_compile, re_match_2_internal): Mark locals as initialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/regex.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e533b07d41a..2ebe327e326 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -7,6 +7,7 @@
7 Remove unused local vars. 7 Remove unused local vars.
8 (FREE_VAR): Rewrite so as not to use empty "else", 8 (FREE_VAR): Rewrite so as not to use empty "else",
9 which gcc can warn about. 9 which gcc can warn about.
10 (regex_compile, re_match_2_internal): Mark locals as initialized.
10 11
11 * search.c (boyer_moore): Rename locals to avoid shadowing. 12 * search.c (boyer_moore): Rename locals to avoid shadowing.
12 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise. 13 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
diff --git a/src/regex.c b/src/regex.c
index 9c950a42b22..6c6aa03e437 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2576,9 +2576,9 @@ regex_compile (const re_char *pattern, size_t size, reg_syntax_t syntax, struct
2576 2576
2577 /* These hold the values of p, pattern, and pend from the main 2577 /* These hold the values of p, pattern, and pend from the main
2578 pattern when we have pushed into a subpattern. */ 2578 pattern when we have pushed into a subpattern. */
2579 re_char *main_p; 2579 re_char *main_p IF_LINT (= NULL);
2580 re_char *main_pattern; 2580 re_char *main_pattern IF_LINT (= NULL);
2581 re_char *main_pend; 2581 re_char *main_pend IF_LINT (= NULL);
2582 2582
2583#ifdef DEBUG 2583#ifdef DEBUG
2584 debug++; 2584 debug++;
@@ -5533,7 +5533,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, int
5533 5533
5534 /* Start of actual range_table, or end of bitmap if there is no 5534 /* Start of actual range_table, or end of bitmap if there is no
5535 range table. */ 5535 range table. */
5536 re_char *range_table; 5536 re_char *range_table IF_LINT (= NULL);
5537 5537
5538 /* Nonzero if there is a range table. */ 5538 /* Nonzero if there is a range table. */
5539 int range_table_exists; 5539 int range_table_exists;