getopt: silence clang warning
authorEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 17:17:40 +0000 (11:17 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 17:17:40 +0000 (11:17 -0600)
commitcbf381169705782b144b2733798a62c11aa473a5
tree07cb88bb9c421024ac09ac54d4bb803868091aa9
parent90d0c4909f2b77d711ea6332a99a9332ff1bab36
getopt: silence clang warning

http://sourceware.org/bugzilla/show_bug.cgi?id=12922

Only triggered by a program that uses "W;" in the short opt string
without providing a longopts array; that can be argued to be a
programmer error, so gnulib won't bother replacing glibc getopt if
it has that bug.

* lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
dereference.
Reported by Gustavo Martin Domato.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/getopt.c