Whamcloud - gitweb
LU-6025 utils: reset optind before calls to getopt_long()
[fs/lustre-release.git] / lustre / utils / obd.c
index 5a296ee..b33a85a 100644 (file)
@@ -1154,7 +1154,6 @@ int jt_obd_md_common(int argc, char **argv, int cmd)
                 {0, 0, 0, 0}
         };
 
-        optind = 0;
         while ((c = getopt_long(argc, argv, "b:c:d:D:m:n:t:v",
                                 long_opts, NULL)) >= 0) {
                 switch (c) {