Mentions légales du service

Skip to content
Snippets Groups Projects

Reset optind to 1 before parsing options

Merged THIBAULT Samuel requested to merge thibault/chameleon:optind into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -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;
Loading