Coverity 1038522: fix memset inside cuda code. Wrong size specified to memset.

pull/405/head
Anoop Saldanha 12 years ago
parent d6fcd07a31
commit 7d46d59cdd

@ -283,7 +283,7 @@ static void *MpmCudaConfParse(ConfNode *node)
MpmCudaConf *conf = SCMalloc(sizeof(MpmCudaConf));
if (conf == NULL)
exit(EXIT_FAILURE);
memset(conf, 0, sizeof(conf));
memset(conf, 0, sizeof(*conf));
if (node != NULL)
value = ConfNodeLookupChildValue(node, "data-buffer-size-min-limit");

Loading…
Cancel
Save