Fix crash on empty command line arguments

This commit is contained in:
Daniel Lichtenberger
2017-09-01 20:01:28 +02:00
parent f3b4722e4f
commit f5628dd5b3
2 changed files with 7 additions and 3 deletions

View File

@@ -122,6 +122,9 @@ int processLineParams ( int argc, char **argv )
{
for ( int iArg = 1; iArg < argc; iArg++) {
Glib::ustring currParam (argv[iArg]);
if ( currParam.empty() ) {
continue;
}
#if ECLIPSE_ARGS
currParam = currParam.substr (1, currParam.length() - 2);
#endif
@@ -697,4 +700,3 @@ int main (int argc, char **argv)
return ret;
}