summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2015-09-22 20:50:02 +0200
committerpark <sk7.park@samsung.com>2017-01-02 02:35:47 -0800
commitaf5198616b53130c9f446f235aa553d7e9926c7e (patch)
treeda72a7deb94fc4b295f6bea02cc1696e7d14a85a
parent6547212a1860ea260b04b7fb53d9c02c72b7d7c7 (diff)
downloadrpm-af5198616b53130c9f446f235aa553d7e9926c7e.tar.gz
rpm-af5198616b53130c9f446f235aa553d7e9926c7e.tar.bz2
rpm-af5198616b53130c9f446f235aa553d7e9926c7e.zip
lowest xz compression level is '0'
Change-Id: Ie430058a1ecd3c03627060c1b32080d0d47a3877
-rw-r--r--rpmio/rpmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 0d9ba031b..2d35c1279 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -903,7 +903,7 @@ static LZFILE *lzopen_internal(const char *path, const char *mode, int fd, int x
encoding = 1;
else if (*mode == 'r')
encoding = 0;
- else if (*mode >= '1' && *mode <= '9')
+ else if (*mode >= '0' && *mode <= '9')
level = *mode - '0';
}
if (fd != -1)