summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-03-26 11:09:14 +0300
committerAlexander Nozdrin <alik@sun.com>2010-03-26 11:09:14 +0300
commitd7dd2fc92f042596c2e72a96934bb207270e7419 (patch)
tree50111e171fcaac2e7303811cafcc061332831bab
parent0025c2d7e9f662ae5560359854580ebbc421c086 (diff)
downloadmariadb-git-d7dd2fc92f042596c2e72a96934bb207270e7419.tar.gz
Fix use of uninitialized variable.
-rw-r--r--sql-common/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 88da0242f5b..cbd3477d58a 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -2435,7 +2435,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
int gai_errno;
char port_buf[NI_MAXSERV];
my_socket sock= SOCKET_ERROR;
- int UNINIT_VAR(saved_error), status= -1;
+ int saved_error= 0, status= -1;
unix_socket=0; /* This is not used */