From: František Dvořák Date: Tue, 4 Apr 2006 08:54:35 +0000 (+0000) Subject: Fixed SEGV with long options or on missing value. X-Git-Tag: glite-jp-index_R_1_2_1~5 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=782d87e796b775a86d2aaf7ff277b52a1511be1d;p=jra1mw.git Fixed SEGV with long options or on missing value. --- diff --git a/org.glite.jp.index/examples/jpis-client.c b/org.glite.jp.index/examples/jpis-client.c index 3f07d94..1703d53 100644 --- a/org.glite.jp.index/examples/jpis-client.c +++ b/org.glite.jp.index/examples/jpis-client.c @@ -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} };