mirror of https://git.tukaani.org/xz.git
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.
This commit is contained in:
parent
3e62c68d75
commit
5ad1effc45
|
@ -390,7 +390,7 @@ suffix_set(const char *suffix)
|
||||||
// Empty suffix and suffixes having a directory separator are
|
// Empty suffix and suffixes having a directory separator are
|
||||||
// rejected. Such suffixes would break things later.
|
// rejected. Such suffixes would break things later.
|
||||||
if (suffix[0] == '\0' || has_dir_sep(suffix))
|
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.
|
// Replace the old custom_suffix (if any) with the new suffix.
|
||||||
free(custom_suffix);
|
free(custom_suffix);
|
||||||
|
|
Loading…
Reference in New Issue