summaryrefslogtreecommitdiffstats
path: root/lib/decompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/decompress.c')
-rw-r--r--lib/decompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decompress.c b/lib/decompress.c
index 961f367320fc..d2842f571674 100644
--- a/lib/decompress.c
+++ b/lib/decompress.c
@@ -43,7 +43,7 @@ decompress_fn decompress_method(const unsigned char *inbuf, int len,
if (len < 2)
return NULL; /* Need at least this much... */
- for (cf = compressed_formats; cf->decompressor; cf++) {
+ for (cf = compressed_formats; cf->name; cf++) {
if (!memcmp(inbuf, cf->magic, 2))
break;