Fix crash on empty arguments

Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sergey Starosek 2015-10-12 16:47:51 +03:00 committed by Dirk Hohndel
parent c9c9673b75
commit 0c7e4d0cab

View file

@ -39,6 +39,8 @@ int main(int argc, char **argv)
for (i = 1; i < arguments.length(); i++) {
QString a = arguments.at(i);
if (a.isEmpty())
continue;
if (a.at(0) == '-') {
parse_argument(a.toLocal8Bit().data());
continue;