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
commitd7f846be94176b3f13734fbdc360336fb79c5104 (patch)
treedbbade1e26954cd7d96983156e6d392fda247207 /libmysqld
parentbfcefa1bd8d60c5816a257bd27cac0c14cdea90d (diff)
parent1d5e2c8dc41e7261e9cc4d2a6548509c10945d3d (diff)
downloadmariadb-git-d7f846be94176b3f13734fbdc360336fb79c5104.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;