Skip to content

Commit

Permalink
fix inversion of number and size arguments in a calloc
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Apr 26, 2024
1 parent 2647f9b commit 5fb152a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ void add_flush_request(int flushNow, uint32_t flushFromSeq, uint32_t flushFromTS
if ((u == NULL) || ((u->flushNow == 0) && (flushNow != 0)) ||
(flushFromSeq < u->flushFromSeq) ||
((flushFromSeq == u->flushFromSeq) && (flushFromTS < u->flushFromTS))) {
flush_request_t *n = (flush_request_t *)calloc(sizeof(flush_request_t), 1);
flush_request_t *n = (flush_request_t *)calloc(1, sizeof(flush_request_t));
n->flushNow = flushNow;
n->flushFromSeq = flushFromSeq;
n->flushFromTS = flushFromTS;
Expand Down

0 comments on commit 5fb152a

Please sign in to comment.