Skip to content

Commit

Permalink
mx_util: Fix calloc argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Feb 17, 2024
1 parent 0e93622 commit 1530bf4
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
Expand Up @@ -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;

Expand Down

0 comments on commit 1530bf4

Please sign in to comment.