* libc/libc/stdlib/getopt.c (getopt_internal): Fix NULL pointer access.
This commit is contained in:
@ -269,6 +269,10 @@ getopt_internal (int argc, char *const argv[], const char *shortopts,
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* End of option list? */
|
||||
if (argv[data->optind] == 0)
|
||||
return EOF;
|
||||
|
||||
/* we've got an option, so parse it */
|
||||
|
||||
/* first, is it a long option? */
|
||||
|
Reference in New Issue
Block a user