diff options
author | unknown <joreland@mysql.com> | 2004-11-16 07:22:30 +0100 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2004-11-16 07:22:30 +0100 |
commit | eb05d78dcb8074a5dfceedf8c86681531fc3bfbe (patch) | |
tree | 39dc847742b930a3c542d1b3020b1463a0392371 /ndb/src/mgmclient/CommandInterpreter.cpp | |
parent | 1f947d4ba8fb3870d9f5b2334a69c9ea5116ba69 (diff) | |
parent | 546e2d3192ed0b5745bf22cbc61f9aec44b426a8 (diff) | |
download | mariadb-git-eb05d78dcb8074a5dfceedf8c86681531fc3bfbe.tar.gz |
merge
configure.in:
Auto merged
ndb/src/Makefile.am:
Auto merged
ndb/src/common/mgmcommon/Makefile.am:
Auto merged
ndb/src/common/portlib/Makefile.am:
Auto merged
ndb/src/common/portlib/NdbConfig.c:
Auto merged
ndb/src/common/transporter/TransporterRegistry.cpp:
Auto merged
ndb/src/kernel/blocks/backup/Makefile.am:
Auto merged
ndb/src/mgmapi/Makefile.am:
Auto merged
ndb/src/mgmclient/Makefile.am:
Auto merged
ndb/tools/Makefile.am:
Auto merged
Diffstat (limited to 'ndb/src/mgmclient/CommandInterpreter.cpp')
-rw-r--r-- | ndb/src/mgmclient/CommandInterpreter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp index fde4e5a2e91..d940f6e165a 100644 --- a/ndb/src/mgmclient/CommandInterpreter.cpp +++ b/ndb/src/mgmclient/CommandInterpreter.cpp @@ -384,8 +384,10 @@ CommandInterpreter::CommandInterpreter(const char *_host) connected = false; try_reconnect = 0; - - host = my_strdup(_host,MYF(MY_WME)); + if (_host) + host= my_strdup(_host,MYF(MY_WME)); + else + host= 0; #ifdef HAVE_GLOBAL_REPLICATION rep_host = NULL; m_repserver = NULL; @@ -400,7 +402,7 @@ CommandInterpreter::~CommandInterpreter() { connected = false; ndb_mgm_destroy_handle(&m_mgmsrv); - my_free((char *)host,MYF(0)); + my_free((char *)host,MYF(MY_ALLOW_ZERO_PTR)); host = NULL; } |