Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f248d3ad authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Merge branch 'optind' into 'master'

Reset optind to 1 before parsing options

See merge request !56
parents 69e80e93 8bc688b6
No related branches found
No related tags found
1 merge request!56Reset optind to 1 before parsing options
...@@ -583,6 +583,7 @@ parse_arguments(int *_argc, char ***_argv, int *iparam, int *start, int *stop, i ...@@ -583,6 +583,7 @@ parse_arguments(int *_argc, char ***_argv, int *iparam, int *start, int *stop, i
int argc = *_argc; int argc = *_argc;
char **argv = *_argv; char **argv = *_argv;
optind = 1;
do { do {
#if defined(CHAMELEON_HAVE_GETOPT_LONG) #if defined(CHAMELEON_HAVE_GETOPT_LONG)
opt = -1; opt = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment