(iOS) Gets past the crash at startup if argv is NULL

This commit is contained in:
Twinaphex 2016-04-02 01:05:24 +02:00
parent 490a2f77ae
commit 90b1db7178

View File

@ -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;