]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/config_parse.c
examples: fix optind reset
[dpdk.git] / examples / ip_pipeline / config_parse.c
index 8b372e94ece2289969caa50c7092b9dfd7864dd5..3ae7d48d58ef431b747df9eeafeaff80290a201d 100644 (file)
@@ -1,4 +1,4 @@
-/*-
+/*-
  *   BSD LICENSE
  *
  *   Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
@@ -3407,7 +3407,7 @@ app_config_args(struct app_params *app, int argc, char **argv)
                        app_print_usage(argv[0]);
                }
 
-       optind = 0; /* reset getopt lib */
+       optind = 1; /* reset getopt lib */
 
        /* Check dependencies between args */
        if (preproc_params_present && (preproc_present == 0))