aboutsummaryrefslogtreecommitdiff
path: root/src/xz/suffix.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-24 00:05:38 +0200
committerJia Tan <jiat0218@gmail.com>2023-01-24 20:20:04 +0800
commit683a3c7e2fcd922200c31078e5c9dd1348e90941 (patch)
treec557a14754563d280330086fe8fa0a63b9d23785 /src/xz/suffix.c
parentxz: Refactor duplicated check for custom suffix when using --format=raw (diff)
downloadxz-683a3c7e2fcd922200c31078e5c9dd1348e90941.tar.xz
xz: Flip the return value of suffix_is_set to match the documentation.
Also edit style to match the existing coding style in the project.
Diffstat (limited to '')
-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 a9cdbd8a..6ce97878 100644
--- a/src/xz/suffix.c
+++ b/src/xz/suffix.c
@@ -397,5 +397,5 @@ suffix_set(const char *suffix)
extern bool
suffix_is_set(void)
{
- return custom_suffix == NULL;
+ return custom_suffix != NULL;
}