X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=example%2Fdiameter%2FstackManagement%2Fmain.cpp;fp=example%2Fdiameter%2FstackManagement%2Fmain.cpp;h=2526a7abae7531dc1534c889b929925b9590b7aa;hb=0c646b4aa99a84ef6976a51b6d4554aea11ded35;hp=96645b3adbda3455c715bbc2e918dfd0923f2bf6;hpb=2dd13851454b7ed734a0d080b2932a0e92d10f0d;p=anna.git diff --git a/example/diameter/stackManagement/main.cpp b/example/diameter/stackManagement/main.cpp index 96645b3..2526a7a 100644 --- a/example/diameter/stackManagement/main.cpp +++ b/example/diameter/stackManagement/main.cpp @@ -67,7 +67,7 @@ int main(int argc, char** argv) { std::string exec = argv[0]; std::string param = argv[1] ? argv[1] : ""; - if (param == "") { + if (argc < 2) { std::string msg = anna::functions::asString("Usage: %s ,\n i.e. '%s avps.xml commands.xml'", exec.c_str(), exec.c_str()); _exit(msg); }