Update main-cli.cc

This commit is contained in:
Ingo Weyrich
2018-10-16 10:11:20 +02:00
committed by GitHub
parent 9e64bca8a6
commit 601ef585e1

View File

@@ -280,7 +280,7 @@ int processLineParams ( int argc, char **argv )
currParam = currParam.substr (1, currParam.length() - 2);
#endif
if ( currParam.at (0) == '-' ) {
if ( currParam.at (0) == '-' && currParam.size() > 1) {
switch ( currParam.at (1) ) {
case 'O':
copyParamsFile = true;