aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-01-12 12:17:08 +0200
committerLasse Collin <lasse.collin@tukaani.org>2014-04-26 08:37:15 +0300
commit41e436076cfdcccc7e853de73b0d56b3d6d42053 (patch)
tree06d319049ec19eb409432d878ddeb67b888e36d0
parentFix typos in comments. (diff)
downloadxz-41e436076cfdcccc7e853de73b0d56b3d6d42053.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/suffix.c b/src/xz/suffix.c
index c89f67fe..8e331a70 100644
--- a/src/xz/suffix.c
+++ b/src/xz/suffix.c
@@ -232,7 +232,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);