Skip to content

Commit

Permalink
rpt_mdc1200.c: Address issue app_rpt: Incorrect usage of sizeof() fun…
Browse files Browse the repository at this point in the history
…ction #207

               Remove unnecessary memset
               Remove extra log for ast_calloc failure.
  • Loading branch information
mkmer committed Feb 17, 2025
1 parent e957e50 commit 948b39d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/app_rpt/rpt_mdc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,8 @@ void mdc1200_ack_status(struct rpt *myrpt, short UnitID)

mdcp = ast_calloc(1, sizeof(struct mdcparams));
if (!mdcp) {
ast_log(LOG_ERROR, "Cannot alloc!!\n");
return;
}
memset(mdcp, 0, sizeof(&mdcp));
mdcp->type[0] = 'A';
mdcp->UnitID = UnitID;
rpt_telemetry(myrpt, MDC1200, (void *) mdcp);
Expand Down

0 comments on commit 948b39d

Please sign in to comment.