diff main.c @ 2:7bf4a164d5bb default tip

fix bug: long_options have to be zero terminated
author Peter Meerwald <p.meerwald@bct-electronic.com>
date Fri, 20 Jul 2012 11:28:30 +0200
parents b8f7423e385c
children
line wrap: on
line diff
--- a/main.c	Fri Jul 20 11:26:24 2012 +0200
+++ b/main.c	Fri Jul 20 11:28:30 2012 +0200
@@ -31,7 +31,8 @@
   {"keepgoing", 0, 0, 'k'},
   {"list",      0, 0, 'l'},
   {"replace",   1, 0, 'r'},
-  {"version",   0, 0, 'v'}
+  {"version",   0, 0, 'v'},
+  {0,           0, 0, 0}
 };
 
 #else /* not HAVE_GETOPT_LONG */

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.