1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Portability fixes

This commit is contained in:
monty@hundin.mysql.fi
2001-09-17 00:32:45 +03:00
parent 560631ed3b
commit 13fd01aad3
6 changed files with 23 additions and 17 deletions

View File

@ -159,7 +159,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
item->save_in_field(key_part->field);
key_len+=key_part->store_length;
}
if (!(key=sql_calloc(ALIGN_SIZE(key_len))))
if (!(key= (byte*) sql_calloc(ALIGN_SIZE(key_len))))
{
send_error(&thd->net,ER_OUTOFMEMORY);
goto err;