From: Lasse Collin Date: Sun, 12 Jan 2014 10:17:08 +0000 (+0200) Subject: xz: Fix use of wrong variable. X-Git-Tag: v5.0.6~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41e436076cfdcccc7e853de73b0d56b3d6d42053;p=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. --- 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);