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
  • Loading branch information
mkmer committed Jan 28, 2025
1 parent e957e50 commit baf7ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app_rpt/rpt_mdc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void mdc1200_ack_status(struct rpt *myrpt, short UnitID)
ast_log(LOG_ERROR, "Cannot alloc!!\n");
return;
}
memset(mdcp, 0, sizeof(&mdcp));
memset(mdcp, 0, sizeof(*mdcp));
mdcp->type[0] = 'A';
mdcp->UnitID = UnitID;
rpt_telemetry(myrpt, MDC1200, (void *) mdcp);
Expand Down

0 comments on commit baf7ef0

Please sign in to comment.