From: Lasse Collin Date: Thu, 23 Jul 2009 16:10:55 +0000 (+0300) Subject: Fix incorrect usage of getopt_long(), which caused X-Git-Tag: upstream/5.1.3~481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0db1befcfbc120377df4b89923762f16d25f548a;p=platform%2Fupstream%2Fxz.git Fix incorrect usage of getopt_long(), which caused invalid memory access if XZ_OPT was defined. --- diff --git a/src/xz/args.c b/src/xz/args.c index 8d5d33c..b50e28b 100644 --- a/src/xz/args.c +++ b/src/xz/args.c @@ -489,7 +489,6 @@ args_parse(args_info *args, int argc, char **argv) parse_environment(args, argv[0]); // Then from the command line - optind = 1; parse_real(args, argc, argv); // Never remove the source file when the destination is not on disk.