mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
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:
parent
c9c9673b75
commit
0c7e4d0cab
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
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;
|
||||
|
|
Loading…
Reference in a new issue