mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/readline: Fix [-Wcalloc-transposed-args] compiler warning
Closes GH-14280
This commit is contained in:
parent
d4accd8b12
commit
0accfd1fe1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue