Imported Upstream version 17.05
[deb_dpdk.git] / examples / ptpclient / ptpclient.c
index 0af4f3b..a80961d 100644 (file)
@@ -708,7 +708,7 @@ ptp_parse_args(int argc, char **argv)
 
        argv[optind-1] = prgname;
 
-       optind = 0; /* Reset getopt lib. */
+       optind = 1; /* Reset getopt lib. */
 
        return 0;
 }