mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(iOS) Gets past the crash at startup if argv is NULL
This commit is contained in:
parent
490a2f77ae
commit
90b1db7178
@ -714,7 +714,10 @@ static void parse_input(int argc, char *argv[])
|
||||
for (;;)
|
||||
{
|
||||
int port;
|
||||
int c = getopt_long(argc, argv, optstring, opts, NULL);
|
||||
int c = -1;
|
||||
|
||||
if (argv != NULL)
|
||||
c = getopt_long(argc, argv, optstring, opts, NULL);
|
||||
|
||||
if (c == -1)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user