Skip to content

Commit

Permalink
Merg 3.1 into 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Apr 11, 2024
2 parents 8228164 + dab5973 commit 02151b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions unittest/libmariadb/bulk1.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ static int bulk1(MYSQL *mysql)

/* allocate memory */
buffer= calloc(TEST_ARRAY_SIZE, sizeof(char *));
lengths= (unsigned long *)calloc(sizeof(long), TEST_ARRAY_SIZE);
vals= (unsigned int *)calloc(sizeof(int), TEST_ARRAY_SIZE);
lengths= calloc(TEST_ARRAY_SIZE, sizeof *lengths);
vals= calloc(TEST_ARRAY_SIZE, sizeof *vals);

for (i=0; i < TEST_ARRAY_SIZE; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion unittest/libmariadb/ps_bugs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5159,7 +5159,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);
Expand Down

0 comments on commit 02151b6

Please sign in to comment.