From 0c7e4d0cab5bd40e94a53046465bce2849fcf46a Mon Sep 17 00:00:00 2001 From: Sergey Starosek Date: Mon, 12 Oct 2015 16:47:51 +0300 Subject: Fix crash on empty arguments Signed-off-by: Sergey Starosek Signed-off-by: Dirk Hohndel --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 71a998d34..f27a17474 100644 --- a/main.cpp +++ b/main.cpp @@ -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; -- cgit v1.2.3-70-g09d2