accept null longopts pointer in getopt_long
authorRich Felker <dalias@aerifal.cx>
Thu, 11 Dec 2014 06:07:02 +0000 (01:07 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 11 Dec 2014 06:07:02 +0000 (01:07 -0500)
commitb4ef1830b7863bfba1da4bdad56a20ef398672a8
tree7aefe53ac7072a39e9c08b39568daba24c7c99d2
parentd4f7d9c46f0e8f19d70871efb66b0f482935642d
accept null longopts pointer in getopt_long

this is an undocumented feature of GNU getopt_long that the BSD
version also mimics, and is reportedly needed by some programs.
src/misc/getopt_long.c