From: Victor Julien Date: Fri, 16 Sep 2022 17:50:31 +0000 (+0200) Subject: app-layer: fix compiler warning X-Git-Tag: suricata-7.0.0-beta1~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9ad1d12606f81fccdd8ccab816221a75fac710a;p=thirdparty%2Fsuricata.git app-layer: fix compiler warning --- 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;