Skip to content

Commit

Permalink
Merge pull request #1670 from RABijl/dev
Browse files Browse the repository at this point in the history
iperf_api: memset entire malloc
  • Loading branch information
bmah888 authored May 24, 2024
2 parents 69a1eb3 + 60b0c18 commit 7a082f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2888,7 +2888,7 @@ iperf_new_test()
i_errno = IENEWTEST;
return NULL;
}
memset(test->bitrate_limit_intervals_traffic_bytes, 0, sizeof(sizeof(iperf_size_t) * MAX_INTERVAL));
memset(test->bitrate_limit_intervals_traffic_bytes, 0, sizeof(iperf_size_t) * MAX_INTERVAL);

/* By default all output goes to stdout */
test->outfile = stdout;
Expand Down

0 comments on commit 7a082f5

Please sign in to comment.