summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c
index 472ef727979..28813304c8a 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)