Ugly argument parsing bug fixed, courtesy of Bruno Ferri <bruno@eliocopy.com>.
authorshort <>
Wed, 1 Dec 1999 13:49:58 +0000 (13:49 +0000)
committershort <>
Wed, 1 Dec 1999 13:49:58 +0000 (13:49 +0000)
mdsms.c

diff --git a/mdsms.c b/mdsms.c
index aad2551..d3f7f74 100644 (file)
--- a/mdsms.c
+++ b/mdsms.c
@@ -316,7 +316,8 @@ static const struct option longopts[]={
 {"file"    ,0,0,'f'},
 {"verbose" ,0,0,'v'},
 {"help"    ,0,0,'h'},
 {"file"    ,0,0,'f'},
 {"verbose" ,0,0,'v'},
 {"help"    ,0,0,'h'},
-{"version" ,0,0,'V'}};
+{"version" ,0,0,'V'},
+{NULL      ,0,0,0  }};
 
 static void processargs(int argp,char **args,const char *from);
 
 
 static void processargs(int argp,char **args,const char *from);