From 6a05e83839a5de5ed1acecf8d6d484ef90ed1dcd Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 10 Jul 1992 13:42:47 +0000 Subject: [PATCH] added arg to calloc() --- src/drv/drvComet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/drv/drvComet.c b/src/drv/drvComet.c index b266f9c49..a3de0cb9a 100644 --- a/src/drv/drvComet.c +++ b/src/drv/drvComet.c @@ -27,6 +27,7 @@ * * Modification Log: * ----------------- + * .01 joh 071092 added argument to calloc() */ /* @@ -192,10 +193,10 @@ comet_init() if ((status = taskDelete(cometDoneTaskId)) < 0) logMsg("\nCOMET: Failed to delete cometDoneTask: %d",status); }else{ -/* if (pcomet_config = (struct comet_config *)calloc(wf_num_cards[COMET]*sizeof(struct comet_config)) +/* if (pcomet_config = (struct comet_config *) calloc(wf_num_cards[COMET], sizeof(struct comet_config)) != (wf_num_cards[COMET]*sizeof(struct comet_config)){ */ - if ( (pcomet_config = (struct comet_config *)calloc(2*sizeof(struct comet_config))) == 0){ + if ( (pcomet_config = (struct comet_config *)calloc(2,sizeof(struct comet_config))) == 0){ logMsg("\nCOMET: Couldn't allocate memory for the configuration data"); return; }