From e19137f0379ce08b43165ce3fb89c1b03398d863 Mon Sep 17 00:00:00 2001 From: "tim@threads.polyesthetic.msg" <> Date: Tue, 17 Apr 2001 09:13:10 -0400 Subject: [PATCH] sql_select.cc sizeof(**TABLE) -> sizeof(*TABLE) in malloc() --- BitKeeper/etc/logging_ok | 1 + sql/sql_select.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok index 9f94b7a6bfd..ab43f834840 100644 --- a/BitKeeper/etc/logging_ok +++ b/BitKeeper/etc/logging_ok @@ -1 +1,2 @@ sasha@mysql.sashanet.com +tim@threads.polyesthetic.msg 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;