summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorMagnus Svensson <msvensson@mysql.com>2008-08-08 20:10:43 +0200
committerMagnus Svensson <msvensson@mysql.com>2008-08-08 20:10:43 +0200
commit69f9ec281d976538b7922754c6ea63e295c2d970 (patch)
treedbbade1e26954cd7d96983156e6d392fda247207 /libmysqld
parent36459fb6dc7e1dd0f2547d7164b4843c228bae04 (diff)
parent32f4018500511fc96573529e14cadb4cadbb4af8 (diff)
downloadmariadb-git-69f9ec281d976538b7922754c6ea63e295c2d970.tar.gz
Merge
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/emb_qcache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmysqld/emb_qcache.cc b/libmysqld/emb_qcache.cc
index fdd7f8ed776..b4eddf39c1f 100644
--- a/libmysqld/emb_qcache.cc
+++ b/libmysqld/emb_qcache.cc
@@ -447,7 +447,8 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src)
if (thd->protocol == &thd->protocol_binary)
{
uint length;
- row= (MYSQL_ROWS *)alloc_root(&data->alloc, rows * sizeof(MYSQL_ROWS));
+ row= (MYSQL_ROWS *)alloc_root(&data->alloc,
+ (size_t) (rows * sizeof(MYSQL_ROWS)));
end_row= row + rows;
data->data= row;