summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authortim@threads.polyesthetic.msg <>2001-04-17 09:13:10 -0400
committertim@threads.polyesthetic.msg <>2001-04-17 09:13:10 -0400
commite19137f0379ce08b43165ce3fb89c1b03398d863 (patch)
tree8cf3e01650fdcb3b8f5935afd094096aa03c789f /sql
parent37f3068495600f20f3f4d49087bf7825435518fd (diff)
downloadmariadb-git-e19137f0379ce08b43165ce3fb89c1b03398d863.tar.gz
sql_select.cc sizeof(**TABLE) -> sizeof(*TABLE) in malloc()
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
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;