summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2015-12-02 18:33:54 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2015-12-02 18:33:54 +0100
commit089a586b43bba6fa74538bca8f0a361c0a984e33 (patch)
tree8cb0852c7189ac4d8f67b2e0f294ca0c53f122ba /sql/sql_table.cc
parent3c0e9d31b3e6494931deb09f5c93b05a96df8471 (diff)
downloadmariadb-git-089a586b43bba6fa74538bca8f0a361c0a984e33.tar.gz
Windows : Fix crash with "uninitialized variable keyname used"
by C runtime debug check.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 8fa24b49d88..ccd6c705c32 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -5843,7 +5843,7 @@ drop_create_field:
Key *key;
List_iterator<Key> key_it(alter_info->key_list);
uint n_key;
- const char *keyname;
+ const char *keyname= NULL;
while ((key=key_it++))
{
if (!key->if_not_exists() && !key->or_replace())