From e19137f0379ce08b43165ce3fb89c1b03398d863 Mon Sep 17 00:00:00 2001 From: "tim@threads.polyesthetic.msg" <> Date: Tue, 17 Apr 2001 09:13:10 -0400 Subject: sql_select.cc sizeof(**TABLE) -> sizeof(*TABLE) in malloc() --- sql/sql_select.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/sql_select.cc b/sql/sql_select.cc index db95214cfa3..9acadefc18d 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -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; -- cgit v1.2.1