New features
[anna.git] / example / diameter / tme / main.cpp
index 08e5f9f..68e2295 100644 (file)
@@ -85,8 +85,8 @@ int main(int argc, char** argv) {
   std::string exec = argv[0];
   std::string param = argv[1] ? argv[1] : "";
 
-  if (param == "") {
-    std::string msg = "Use: "; msg += exec; msg += " <xml directory>";
+  if (argc < 2) {
+    std::string msg = "Usage: "; msg += exec; msg += " <xml directory>";
     msg += "\n     xml directory: contains the xml files needed, which are:";
     msg += "\n";
     msg += "\n                       avps_ietf.xml";