]> git.eshelyaron.com Git - emacs.git/commitdiff
* regex.c (regex_compile, re_match_2_internal): Mark locals as initialized.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 18:43:04 +0000 (11:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 18:43:04 +0000 (11:43 -0700)
src/ChangeLog
src/regex.c

index e533b07d41a040d2bb796690d696c77f104a9313..2ebe327e3269e3d8b8c040e29783a3015cc9f547 100644 (file)
@@ -7,6 +7,7 @@
        Remove unused local vars.
        (FREE_VAR): Rewrite so as not to use empty "else",
        which gcc can warn about.
+       (regex_compile, re_match_2_internal): Mark locals as initialized.
 
        * search.c (boyer_moore): Rename locals to avoid shadowing.
        * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
index 9c950a42b22385f77ef5bc5ab5b84de36ba80d65..6c6aa03e437c8358611ceccfaeb8e4e3efa90bf6 100644 (file)
@@ -2576,9 +2576,9 @@ regex_compile (const re_char *pattern, size_t size, reg_syntax_t syntax, struct
 
   /* These hold the values of p, pattern, and pend from the main
      pattern when we have pushed into a subpattern.  */
-  re_char *main_p;
-  re_char *main_pattern;
-  re_char *main_pend;
+  re_char *main_p IF_LINT (= NULL);
+  re_char *main_pattern IF_LINT (= NULL);
+  re_char *main_pend IF_LINT (= NULL);
 
 #ifdef DEBUG
   debug++;
@@ -5533,7 +5533,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, int
 
            /* Start of actual range_table, or end of bitmap if there is no
               range table.  */
-           re_char *range_table;
+           re_char *range_table IF_LINT (= NULL);
 
            /* Nonzero if there is a range table.  */
            int range_table_exists;