aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
43 if (len < 2) 43 if (len < 2)
44 return NULL; /* Need at least this much... */ 44 return NULL; /* Need at least this much... */
45 45
46 for (cf = compressed_formats; cf->decompressor; cf++) { 46 for (cf = compressed_formats; cf->name; cf++) {
47 if (!memcmp(inbuf, cf->magic, 2)) 47 if (!memcmp(inbuf, cf->magic, 2))
48 break; 48 break;
49 49