From: Jeff Lucovsky Date: Thu, 14 Sep 2023 14:31:05 +0000 (-0400) Subject: detect/gen: Minor cleanup X-Git-Tag: suricata-7.0.2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59d050a0674f746a0aff1bc35a9dc743d07d232f;p=thirdparty%2Fsuricata.git detect/gen: Minor cleanup Issue: 5211 --- diff --git a/src/detect-engine-build.c b/src/detect-engine-build.c index 80f5d89757..e957b50bdb 100644 --- a/src/detect-engine-build.c +++ b/src/detect-engine-build.c @@ -668,10 +668,8 @@ static json_t *RulesGroupPrintSghStats(const DetectEngineCtx *de_ctx, const SigG json_t *js_array = json_array(); - const Signature *s; - uint32_t x; - for (x = 0; x < sgh->init->sig_cnt; x++) { - s = sgh->init->match_array[x]; + for (uint32_t x = 0; x < sgh->init->sig_cnt; x++) { + const Signature *s = sgh->init->match_array[x]; if (s == NULL) continue;