Fixed SEGV with long options or on missing value.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 Apr 2006 08:54:35 +0000 (08:54 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 Apr 2006 08:54:35 +0000 (08:54 +0000)
org.glite.jp.index/examples/jpis-client.c

index 3f07d94..1703d53 100644 (file)
@@ -31,9 +31,9 @@ SOAP_NMAC struct Namespace namespaces[] = {
 
 static struct option opts[] = {
        {"index-server",required_argument,      NULL,   'i'},
-       {"example-file",optional_argument,      NULL,   'e'},
-       {"query-file",  optional_argument,      NULL,   'q'},
-       {"test-file",   optional_argument,      NULL,   't'},
+       {"example-file",required_argument,      NULL,   'e'},
+       {"query-file",  required_argument,      NULL,   'q'},
+       {"test-file",   required_argument,      NULL,   't'},
        {"format",      required_argument,      NULL,   'f'},
        {NULL, 0, NULL, 0}
 };