From: Victor Julien Date: Tue, 9 Jan 2024 13:44:32 +0000 (+0100) Subject: detect: minor cleanup X-Git-Tag: suricata-8.0.0-beta1~1649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd0745b782b768a400f86867b2f6cdaed8ce0a7;p=thirdparty%2Fsuricata.git detect: minor cleanup --- diff --git a/src/detect.c b/src/detect.c index 6eb8698cf4..4cc428eb99 100644 --- a/src/detect.c +++ b/src/detect.c @@ -729,7 +729,6 @@ static inline void DetectRulePacketRules( const DetectRunScratchpad *scratch ) { - const Signature *s = NULL; const Signature *next_s = NULL; /* inspect the sigs against the packet */ @@ -760,7 +759,7 @@ static inline void DetectRulePacketRules( #ifdef PROFILE_RULES bool smatch = false; /* signature match */ #endif - s = next_s; + const Signature *s = next_s; sflags = next_sflags; if (match_cnt) { next_s = *match_array++;