mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
Fix GCC 14 -Wcalloc-transposed-args
This commit is contained in:
parent
d64ade302e
commit
d86deee34b
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ static int conv(int n, const struct pam_message **msg,
|
||||||
freeing it is the responsibility of the caller */
|
freeing it is the responsibility of the caller */
|
||||||
if (*resp == 0)
|
if (*resp == 0)
|
||||||
{
|
{
|
||||||
*resp = calloc(sizeof(struct pam_response), n);
|
*resp = calloc(n, sizeof(struct pam_response));
|
||||||
if (*resp == 0)
|
if (*resp == 0)
|
||||||
return PAM_BUF_ERR;
|
return PAM_BUF_ERR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue