summaryrefslogtreecommitdiff
path: root/client/mysqldump.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2012-08-13 22:23:28 +0300
committerMichael Widenius <monty@askmonty.org>2012-08-13 22:23:28 +0300
commitcee888acb36141136cdb121a7bb7d53200b14cb6 (patch)
treeaff0fbc9585911eb70b4f7c1f8f8adc7a0a05019 /client/mysqldump.c
parent1aa6f042dab7a09dd86d96f934faa87df1c005c1 (diff)
downloadmariadb-git-cee888acb36141136cdb121a7bb7d53200b14cb6.tar.gz
Fixed compiler warnings (A few of these was bugs)
client/mysqldump.c: Slave needs to be initialized with 0 dbug/dbug.c: Removed not existing function plugin/semisync/semisync_master.cc: Fixed compiler warning sql/opt_range.cc: thd needs to be set early as it's used in some error conditions. sql/sql_table.cc: Changed to use uchar* to make array indexing portable storage/innobase/handler/ha_innodb.cc: Removed not used variable storage/maria/ma_delete.c: Fixed compiler warning storage/maria/ma_write.c: Fixed compiler warning
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r--client/mysqldump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 3adbc897c50..32ac3a1ac59 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -4784,7 +4784,7 @@ static int add_slave_statements(void)
static int do_show_slave_status(MYSQL *mysql_con)
{
- MYSQL_RES *slave;
+ MYSQL_RES *slave= 0;
const char *comment_prefix=
(opt_slave_data == MYSQL_OPT_SLAVE_DATA_COMMENTED_SQL) ? "-- " : "";
if (mysql_query_with_error_report(mysql_con, &slave, "SHOW SLAVE STATUS"))