diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-03 02:22:43 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-03 02:22:43 -0700 |
commit | 26d4541d4c0c9a71453143c17d392291c41856ff (patch) | |
tree | 2f69f4cf68d4e30f0e108ee7336f97a76441e396 /src/regex.c | |
parent | c5e28e39275c4a5a63adbe3e1e3b23a58c4a4bb8 (diff) |
Fix minor problems found by static checking.
* buffer.c (Fdelete_all_overlays): Return nil.
* doc.c (Fsubstitute_command_keys):
* regex.c (WEAK_ALIAS):
* xdisp.c (redisplay_internal):
Move initialization down, to pacify GCC 4.7.1 -Wjump-misses-init.
Diffstat (limited to 'src/regex.c')
-rw-r--r-- | src/regex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c index 472ef72797..28813304c8 100644 --- a/src/regex.c +++ b/src/regex.c @@ -5160,11 +5160,13 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, { /* 1 if this match ends in the same string (string1 or string2) as the best previous match. */ - boolean same_str_p = (FIRST_STRING_P (match_end) - == FIRST_STRING_P (d)); + boolean same_str_p; /* 1 if this match is the best seen so far. */ boolean best_match_p; + same_str_p = (FIRST_STRING_P (match_end) + == FIRST_STRING_P (d)); + /* AIX compiler got confused when this was combined with the previous declaration. */ if (same_str_p) |