mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +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 (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
int port;
|
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)
|
if (c == -1)
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user