summaryrefslogtreecommitdiff
path: root/rpmio/rpmio.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio/rpmio.c')
-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)