From b9ad1d12606f81fccdd8ccab816221a75fac710a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 16 Sep 2022 19:50:31 +0200 Subject: [PATCH] app-layer: fix compiler warning --- src/app-layer-detect-proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index 281454a8a6..f94b379835 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -516,7 +516,7 @@ static AppProto AppLayerProtoDetectPPGetProto(Flow *f, const uint8_t *buf, uint3 const AppLayerProtoDetectProbingParserElement *pe1 = NULL; const AppLayerProtoDetectProbingParserElement *pe2 = NULL; AppProto alproto = ALPROTO_UNKNOWN; - uint32_t *alproto_masks; + uint32_t *alproto_masks = NULL; uint32_t mask = 0; uint8_t idir = (flags & (STREAM_TOSERVER | STREAM_TOCLIENT)); uint8_t dir = idir;