]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: minor cleanup
authorVictor Julien <vjulien@oisf.net>
Tue, 9 Jan 2024 13:44:32 +0000 (14:44 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 16 Mar 2024 08:29:34 +0000 (09:29 +0100)
src/detect.c

index 6eb8698cf4a8eb7cb987e41c008381d1bb217ea5..4cc428eb999e5b9003f3d6f2614f62782bf1e0bb 100644 (file)
@@ -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++;