summaryrefslogtreecommitdiff
path: root/ndb/src
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-11-18 22:06:51 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-11-18 22:06:51 +0000
commitbe7d46a962fa4da6171531927653794627abcdff (patch)
tree04952ee00159cf23220c356b161a4e0e83bb5b17 /ndb/src
parent18f12ee494d96a7e2caf6ab5d725fe6d371f9cba (diff)
parent1af6e72e4ebb65a392658a2dab795fda68564af0 (diff)
downloadmariadb-git-be7d46a962fa4da6171531927653794627abcdff.tar.gz
Merge
client/Makefile.am: Auto merged client/mysqladmin.cc: Auto merged configure.in: Auto merged ndb/src/mgmclient/CommandInterpreter.cpp: Auto merged ndb/src/mgmclient/ndb_mgmclient.hpp: Auto merged ndb/src/mgmclient/ndb_mgmclient.h: Auto merged ndb/tools/restore/restore_main.cpp: SCCS merged
Diffstat (limited to 'ndb/src')
-rw-r--r--ndb/src/mgmclient/CommandInterpreter.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp
index 00e0a8c1919..54beaa49d3f 100644
--- a/ndb/src/mgmclient/CommandInterpreter.cpp
+++ b/ndb/src/mgmclient/CommandInterpreter.cpp
@@ -1374,7 +1374,7 @@ void
CommandInterpreter::executeDumpState(int processId, const char* parameters,
bool all)
{
- if(parameters == 0 || strlen(parameters) == 0){
+ if(emptyString(parameters)){
ndbout << "Expected argument" << endl;
return;
}
@@ -1794,6 +1794,10 @@ CommandInterpreter::executeEventReporting(int processId,
const char* parameters,
bool all)
{
+ if (emptyString(parameters)) {
+ ndbout << "Expected argument" << endl;
+ return;
+ }
connect();
BaseString tmp(parameters);
@@ -1894,6 +1898,7 @@ void
CommandInterpreter::executeAbortBackup(char* parameters)
{
connect();
+
strtok(parameters, " ");
struct ndb_mgm_reply reply;
char* id = strtok(NULL, "\0");