mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
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.
This commit is contained in:
parent
a2c6329c5a
commit
22ad721b1f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue