sql_select.cc sizeof(**TABLE) -> sizeof(*TABLE) in malloc()

This commit is contained in:
tim@threads.polyesthetic.msg 2001-04-17 09:13:10 -04:00
parent 37f3068495
commit e19137f037
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1,2 @@
sasha@mysql.sashanet.com
tim@threads.polyesthetic.msg

View file

@ -846,7 +846,7 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds,
table_count=join->tables;
stat=(JOIN_TAB*) join->thd->calloc(sizeof(JOIN_TAB)*table_count);
stat_ref=(JOIN_TAB**) join->thd->alloc(sizeof(JOIN_TAB*)*MAX_TABLES);
table_vector=(TABLE**) join->thd->alloc(sizeof(TABLE**)*(table_count*2));
table_vector=(TABLE**) join->thd->alloc(sizeof(TABLE*)*(table_count*2));
if (!stat || !stat_ref || !table_vector)
DBUG_RETURN(1); // Eom /* purecov: inspected */
select=0;