]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fix improper argument reference.
authorSergey Poznyakoff <gray@gnu.org>
Sun, 17 Jan 2021 17:02:47 +0000 (19:02 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Sun, 17 Jan 2021 17:02:47 +0000 (19:02 +0200)
(bug introduced by 1ff0b63f)

* src/tar.c (parse_default_options): Pass args as is to the argp_parse.

src/tar.c

index 83072f12f9f625dd6c85f29657b2981f59d4c1e8..6629f190db9e2b7adc82bfd7f5a12f2ff1b0d32d 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -2248,7 +2248,7 @@ parse_default_options (struct tar_args *args)
       if (argp_parse (&argp,
                      ws.ws_offs + ws.ws_wordc,
                      ws.ws_wordv,
-                     ARGP_IN_ORDER|ARGP_NO_EXIT, &idx, &args))
+                     ARGP_IN_ORDER|ARGP_NO_EXIT, &idx, args))
        abort (); /* shouldn't happen */
       args->loc = save_loc_ptr;
       if (name_more_files ())