Skip to content

Commit e406bca

Browse files
author
Marc Stern
committed
Fixed compilation issue (variable scope definition)
1 parent 569abcd commit e406bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/re_operators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,8 @@ static int msre_op_validateHash_execute(modsec_rec *msr, msre_rule *rule, msre_v
780780

781781
expand_macros(msr, re_pattern, rule, msr->mp);
782782

783+
const char *pattern = log_escape_re(msr->mp, re_pattern->value);
783784
if (msr->txcfg->debuglog_level >= 6) {
784-
const char *pattern = log_escape_re(msr->mp, re_pattern->value);
785785
msr_log(msr, 6, "Escaping pattern [%s]",pattern);
786786
}
787787

0 commit comments

Comments
 (0)