diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2014-01-12 12:17:08 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2014-01-12 12:17:08 +0200 |
commit | 5ad1effc45adfb7dabc9a98e79736077e6b7e2d5 (patch) | |
tree | 716fdbbfe8b53dfb372a053f8777c271050a7915 | |
parent | Fix typos in comments. (diff) | |
download | xz-5ad1effc45adfb7dabc9a98e79736077e6b7e2d5.tar.xz |
xz: Fix use of wrong variable.
Since the only call to suffix_set() uses optarg
as the argument, fixing this bug doesn't change
the behavior of the program.
-rw-r--r-- | src/xz/suffix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/suffix.c b/src/xz/suffix.c index e5156261..9d4fcd13 100644 --- a/src/xz/suffix.c +++ b/src/xz/suffix.c @@ -390,7 +390,7 @@ suffix_set(const char *suffix) // Empty suffix and suffixes having a directory separator are // rejected. Such suffixes would break things later. if (suffix[0] == '\0' || has_dir_sep(suffix)) - message_fatal(_("%s: Invalid filename suffix"), optarg); + message_fatal(_("%s: Invalid filename suffix"), suffix); // Replace the old custom_suffix (if any) with the new suffix. free(custom_suffix); |