mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Avoid crash with empty command line argument
It appears on iOS we can get a command line argument of "" which would crash Subsurface-mobile on startup. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
24bd2eab43
commit
6cf100f1cc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ int main(int argc, char **argv)
|
|||
|
||||
for (i = 1; i < arguments.length(); i++) {
|
||||
QString a = arguments.at(i);
|
||||
if (a.at(0) == '-') {
|
||||
if (!a.isEmpty() && a.at(0) == '-') {
|
||||
parse_argument(a.toLocal8Bit().data());
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue