diff --git a/testApp/remote/eget.cpp b/testApp/remote/eget.cpp index c528f20..7afc8d6 100644 --- a/testApp/remote/eget.cpp +++ b/testApp/remote/eget.cpp @@ -1464,9 +1464,18 @@ int main (int argc, char *argv[]) { string param = optarg; size_t eqPos = param.find('='); + if (eqPos==0) + { + // no name + + fprintf(stderr, "Parameter not specified in '-a name=value' form. ('eget -h' for help.)\n"); + return 1; + } if (eqPos==string::npos) { - //fprintf(stderr, "Parameter not specified in name=value form. ('eget -h' for help.)\n"); + // no value + + //fprintf(stderr, "Parameter not specified in '-a name=value' form. ('eget -h' for help.)\n"); //return 1; parameters.push_back(pair(param, "")); }