From: Victor Julien Date: Thu, 16 Feb 2017 14:52:49 +0000 (+0100) Subject: coverity: suppress CID 1400648 X-Git-Tag: suricata-4.0.0-beta1~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c859d39f4f6948c6cc4282aeb0382b08adf53956;p=thirdparty%2Fsuricata.git coverity: suppress CID 1400648 --- diff --git a/src/detect-engine.c b/src/detect-engine.c index 8c0031b8d6..0df068c521 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1395,7 +1395,7 @@ static int DetectEngineThreadCtxInitGlobalKeywords(DetectEngineThreadCtx *det_ct SCMutexLock(&master->lock); if (master->keyword_id > 0) { - det_ctx->global_keyword_ctxs_array = SCCalloc(master->keyword_id, sizeof(void *)); + det_ctx->global_keyword_ctxs_array = (void **)SCCalloc(master->keyword_id, sizeof(void *)); if (det_ctx->global_keyword_ctxs_array == NULL) { SCLogError(SC_ERR_DETECT_PREPARE, "setting up thread local detect ctx"); goto error;