Subject: Re: lib/33841: getopt_long results in core dump
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/27/2006 21:50:01
The following reply was made to PR lib/33841; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: lib/33841: getopt_long results in core dump
Date: Tue, 27 Jun 2006 23:47:37 +0200

 On Tue, Jun 27, 2006 at 09:30:00PM +0000, cheusov@tut.by wrote:
 >         struct option longopts [] = {
 >                 {"foo", no_argument, 0, 'f'},
 >         };
 
 Quoting from getopt_long(3):
 
      The last element of the long_options array has to be filled with zeroes
      (see EXAMPLES section).
 
 Martin