Skip to content
Snippets Groups Projects
Commit c4fc8268 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Bug 1650: Added missing sanity-check on number of arguments when in ACC mode.

parent c8255547
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,11 @@ int ACCmain (int argc, char* orig_argv[], ProcessControl* theProcess) {
}
LOG_DEBUG(programName + (ACCmode ? " " : " not ") + "started by ACC");
// Check number of command-line arguments when in ACC mode.
if(ACCmode) {
ASSERTSTR(argc > 3, "Wrong number of arguments in ACC mode");
}
// Read in the parameterset.
ConfigLocator CL;
string ParsetFile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment