1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fix GCC 14 -Wcalloc-transposed-args

This commit is contained in:
Marko Mäkelä
2024-04-11 14:47:28 +03:00
parent 1d3fd5818a
commit dab59732d9
2 changed files with 3 additions and 3 deletions

View File

@@ -5115,7 +5115,7 @@ static int test_maxparam(MYSQL *mysql)
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
MYSQL_BIND* bind;
bind = calloc(sizeof(MYSQL_BIND), 65535);
bind = calloc(65535, sizeof *bind);
rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1");
check_mysql_rc(rc, mysql);