From bdefd8329df3a37371fefe2af98dadf2af5e399b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 26 Jul 2006 14:23:37 +0000 Subject: [PATCH] Forgotten change from glite-jp-index_branch_1_2_0_RC31 branch: Fixed SEGV with long options or on missing value. --- org.glite.jp.index/examples/jpis-client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} }; -- 1.8.2.3