This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14896] getopt_long: optind contains invalid index in very specific cases
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 09 Jan 2013 15:24:48 +0000
- Subject: [Bug libc/14896] getopt_long: optind contains invalid index in very specific cases
- Auto-submitted: auto-generated
- References: <bug-14896-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14896
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2013-01-09 15:24:48 UTC ---
optind always points at the next argument to be parsed. If you want the last
parsed one you need to use optind-1.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.