summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-09-03 12:36:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-09-03 12:36:09 -0700
commitd42f4f0fb374051f2f80228821e5c0b824451807 (patch)
tree2d9104d1e1a9ef6dd04b708dfb58e269882ea341 /src/regex.c
parent79a7bafe62de094b745a47c2b90b17ada5fc5a21 (diff)
downloademacs-d42f4f0fb374051f2f80228821e5c0b824451807.tar.gz
Revert changes prompted only by gcc -Wjump-misses-init.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/regex.c b/src/regex.c
index 28813304c8a..472ef727979 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -5160,13 +5160,11 @@ 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;
+ boolean same_str_p = (FIRST_STRING_P (match_end)
+ == FIRST_STRING_P (d));
/* 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)