From 2c4fcd3d2b2799b4dc8855536941359e3d801abe Mon Sep 17 00:00:00 2001
From: Raphael Boucherie <raphael.boucherie@inria.fr>
Date: Wed, 5 Jul 2017 13:54:12 +0200
Subject: [PATCH] init for opt

---
 timing/timing.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/timing/timing.c b/timing/timing.c
index 72846b6be..ce237a2d6 100644
--- a/timing/timing.c
+++ b/timing/timing.c
@@ -551,13 +551,14 @@ set_iparam_default(int *iparam){
 void
 parse_arguments(int *_argc, char ***_argv, int *iparam, int *start, int *stop, int*step)
 {
-    int opt = 0;
+    int opt = -1;
     int c;
     int argc = *_argc;
     char **argv = *_argv;
 
     do {
 #if defined(CHAMELEON_HAVE_GETOPT_LONG)
+        opt = -1;
         c = getopt_long(argc, argv, GETOPT_STRING,
                              long_options, &opt);
 #else
-- 
GitLab