Skip to content

Commit 0accfd1

Browse files
committed
ext/readline: Fix [-Wcalloc-transposed-args] compiler warning
Closes GH-14280
1 parent d4accd8 commit 0accfd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/readline/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ char **php_readline_completion_cb(const char *text, int start, int end)
456456
matches = rl_completion_matches(text,_readline_command_generator);
457457
} else {
458458
/* libedit will read matches[2] */
459-
matches = calloc(sizeof(char *), 3);
459+
matches = calloc(3, sizeof(char *));
460460
if (!matches) {
461461
return NULL;
462462
}

0 commit comments

Comments
 (0)