Subject: Re: lib/33841: getopt_long results in core dump
To: None <gnats-bugs@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/27/2006 23:47:37
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