mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Update.
2000-03-30 Ulrich Drepper <drepper@redhat.com> * posix/getopt.c (_getopt_internal): Return -1 if argc < 1. Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk> (PR libc/1677).
This commit is contained in:
parent
7f4e0e5886
commit
05c54d4c8e
@ -1,3 +1,9 @@
|
||||
2000-03-30 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
|
||||
Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
|
||||
(PR libc/1677).
|
||||
|
||||
2000-03-30 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* misc/sys/cdefs.h: Remove K&R support.
|
||||
|
@ -521,6 +521,9 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
||||
if (optstring[0] == ':')
|
||||
print_errors = 0;
|
||||
|
||||
if (argc < 1)
|
||||
return -1;
|
||||
|
||||
optarg = NULL;
|
||||
|
||||
if (optind == 0 || !__getopt_initialized)
|
||||
|
Loading…
Reference in New Issue
Block a user