summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorSreeharsha Ramanavarapu <sreeharsha.ramanavarapu@oracle.com>2015-11-18 08:04:04 +0530
committerSreeharsha Ramanavarapu <sreeharsha.ramanavarapu@oracle.com>2015-11-18 08:04:04 +0530
commit63dc9c3f42858e0f855abb875f37cb096cf3ae27 (patch)
tree14a74732c0666cf60b72ecca36e4154d4c080e27 /storage
parent6d1e2fbca805cb9dde94def5f579b0ee45444f5b (diff)
downloadmariadb-git-63dc9c3f42858e0f855abb875f37cb096cf3ae27.tar.gz
Bug #22214852: MYSQL 5.5 AND 5.6: MAIN.KEY AND OTHER
FAILURE WITH VALGRIND FOR RELEASE BUILD Issue: ------ Initialization of variable with UNINIT_VAR is flagged by valgrind 3.11. SOLUTION: --------- Initialize the variable to 0. This is a backport of Bug# 14580121.
Diffstat (limited to 'storage')
-rw-r--r--storage/myisam/mi_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/myisam/mi_check.c b/storage/myisam/mi_check.c
index 5f326d0e45f..ba1f975549a 100644
--- a/storage/myisam/mi_check.c
+++ b/storage/myisam/mi_check.c
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -138,7 +138,7 @@ int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag)
{
reg2 ha_rows i;
uint delete_link_length;
- my_off_t empty,next_link,UNINIT_VAR(old_link);
+ my_off_t empty, next_link, old_link= 0;
char buff[22],buff2[22];
DBUG_ENTER("chk_del");