summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.(none)>2007-08-06 22:52:50 +0400
committerunknown <kostja@bodhi.(none)>2007-08-06 22:52:50 +0400
commit6e2a24650453445d95513bbc01f2e7877de014af (patch)
tree114c2cf61721cc550c8d279ce7daf7161c2f046d
parentae3536fe4e8587c10319fb9309087580142c482e (diff)
downloadmariadb-git-6e2a24650453445d95513bbc01f2e7877de014af.tar.gz
Fix "db_cl_altered might be used uninitialized" warning.
-rw-r--r--client/mysqldump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index da24cedc7d7..5afab7c7828 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -1820,7 +1820,7 @@ static uint dump_events_for_db(char *db)
MYSQL_ROW row, event_list_row;
char db_cl_name[MY_CS_NAME_SIZE];
- int db_cl_altered;
+ int db_cl_altered= FALSE;
DBUG_ENTER("dump_events_for_db");
DBUG_PRINT("enter", ("db: '%s'", db));
@@ -2005,7 +2005,7 @@ static uint dump_routines_for_db(char *db)
MYSQL_ROW row, routine_list_row;
char db_cl_name[MY_CS_NAME_SIZE];
- int db_cl_altered;
+ int db_cl_altered= FALSE;
DBUG_ENTER("dump_routines_for_db");
DBUG_PRINT("enter", ("db: '%s'", db));
@@ -2746,7 +2746,7 @@ static int dump_trigger(MYSQL_RES *show_create_trigger_rs,
{
FILE *sql_file= md_result_file;
MYSQL_ROW row;
- int db_cl_altered;
+ int db_cl_altered= FALSE;
DBUG_ENTER("dump_trigger");