From: Victor Julien Date: Fri, 28 Jun 2013 08:06:27 +0000 (+0200) Subject: Coverity 1038959: DNS mpm might use initialized variable X-Git-Tag: suricata-2.0beta1~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3b554c269c69309d26e67d61e677df39c5c44a8;p=thirdparty%2Fsuricata.git Coverity 1038959: DNS mpm might use initialized variable --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 0f5959e3d2..7aedf0c639 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -655,7 +655,7 @@ uint32_t DnsQueryPatternSearch(DetectEngineThreadCtx *det_ctx, { SCEnter(); - uint32_t ret; + uint32_t ret = 0; if (flags & STREAM_TOSERVER) { if (det_ctx->sgh->mpm_dnsquery_ctx_ts == NULL)