summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test.c b/test/test.c
index 9d624b98e..fb26df9d7 100644
--- a/test/test.c
+++ b/test/test.c
@@ -2641,9 +2641,12 @@ static int ParseOptions( int argc, char ** argv )
int option_index = 0;
int c;
+ int cur_optind;
- c = getopt_long( argc, argv,
- "hv::uC:f:4i:Io:t:Lc:m::M:a:A:6:s:UF::N:e:E:2dD:7895gOw:l:n:b:q:S:B:r:R:x:TY:X:Z:z",
+ cur_optind = optind;
+ c = getopt_long( argc, argv,
+ "hv::uC:f:4i:Io:t:c:m::M:a:A:6:s:UF::N:e:E:"
+ "2dD:7895gOw:l:n:b:q:S:B:r:R:x:TY:X:Z:z",
long_options, &option_index );
if( c < 0 )
{
@@ -3099,7 +3102,7 @@ static int ParseOptions( int argc, char ** argv )
color_matrix = 2;
break;
default:
- fprintf( stderr, "unknown option (%s)\n", argv[optind] );
+ fprintf( stderr, "unknown option (%s)\n", argv[cur_optind] );
return -1;
}
}