From 8d649262fd27cb3e38a29dfa76ee0425ca54d21a Mon Sep 17 00:00:00 2001 From: brenosilva Date: Thu, 2 Aug 2012 18:27:14 +0000 Subject: [PATCH] Init variables --- apache2/re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache2/re.c b/apache2/re.c index 51659730..26258a1d 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -52,7 +52,7 @@ static int fetch_target_exception(msre_rule *rule, modsec_rec *msr, msre_var *va char *myvalue = NULL, *myname = NULL; const apr_array_header_t *tarr = NULL; const apr_table_entry_t *telts = NULL; - int i, match; + int i, match = 0; if(msr == NULL) return 0; @@ -148,7 +148,7 @@ static int fetch_target_exception(msre_rule *rule, modsec_rec *msr, msre_var *va } - if(match) + if(match == 1) return 1; return 0;