Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mx_util: Fix calloc argument order
Browse files Browse the repository at this point in the history
donald committed Jan 10, 2024
1 parent c3b6d14 commit c77eb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mx_util.c
Original file line number Diff line number Diff line change
@@ -931,7 +931,7 @@ char **mx_strvec_new(void)
{
char **strvec;

strvec = calloc(sizeof(*strvec), 1);
strvec = calloc(1, sizeof(*strvec));
if (!strvec)
return NULL;

0 comments on commit c77eb3e

Please sign in to comment.