summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/records.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/records.cc b/sql/records.cc
index ae7ec74c17d..14a4390b229 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -596,7 +596,7 @@ static int init_rr_cache(THD *thd, READ_RECORD *info)
DBUG_RETURN(1);
#ifdef HAVE_purify
// Avoid warnings in qsort
- bzero(info->cache,rec_cache_size+info->cache_records* info->struct_length+1);
+ bzero(info->cache,rec_cache_size+info->cache_records* info->struct_length);
#endif
DBUG_PRINT("info",("Allocated buffert for %d records",info->cache_records));
info->read_positions=info->cache+rec_cache_size;