Skip to content

Commit

Permalink
ext/readline: Fix [-Wcalloc-transposed-args] compiler warning
Browse files Browse the repository at this point in the history
Closes GH-14280
  • Loading branch information
Girgias committed May 21, 2024
1 parent d4accd8 commit 0accfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/readline/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ char **php_readline_completion_cb(const char *text, int start, int end)
matches = rl_completion_matches(text,_readline_command_generator);
} else {
/* libedit will read matches[2] */
matches = calloc(sizeof(char *), 3);
matches = calloc(3, sizeof(char *));
if (!matches) {
return NULL;
}
Expand Down

0 comments on commit 0accfd1

Please sign in to comment.