From c859d39f4f6948c6cc4282aeb0382b08adf53956 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 16 Feb 2017 15:52:49 +0100 Subject: [PATCH] coverity: suppress CID 1400648 --- src/detect-engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;