summaryrefslogtreecommitdiff
path: root/client/mysqlbinlog.cc
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2003-09-12 15:48:48 +0200
committerunknown <guilhem@mysql.com>2003-09-12 15:48:48 +0200
commitf360818ad037ded90960b2a92e1e070f3de19052 (patch)
treea467aa44754942301bc5650394e010340df79bff /client/mysqlbinlog.cc
parent134a2532ef7ab6cdf1f336c5f53d901743ab6fa5 (diff)
downloadmariadb-git-f360818ad037ded90960b2a92e1e070f3de19052.tar.gz
Fix for BUG#1258 (Trying to use the mysqlbinlog with -h and -u option gives segmentation
fault). Fix is just initializing "host" (and "user") with 0, not a string. client/mysqlbinlog.cc: command-line arguments should be initialized like in mysqldump.cc to not cause segfault.
Diffstat (limited to 'client/mysqlbinlog.cc')
-rw-r--r--client/mysqlbinlog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index a454d6a859f..ac43130b8bc 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -49,10 +49,10 @@ static bool force_opt= 0;
static const char* database;
static bool short_form = 0;
static ulonglong offset = 0;
-static const char* host = "localhost";
+static const char* host = 0;
static int port = MYSQL_PORT;
static const char* sock= MYSQL_UNIX_ADDR;
-static const char* user = "test";
+static const char* user = 0;
static const char* pass = "";
static ulonglong position = 0;
static bool use_remote = 0;