From 8d586931e003e79720039c8241d14d4a6bbe944c Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 25 Jul 2013 07:42:43 +0200 Subject: Thanks, Coverity --- src/dictzip-input-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dictzip-input-stream.c b/src/dictzip-input-stream.c index f539790..8b26096 100644 --- a/src/dictzip-input-stream.c +++ b/src/dictzip-input-stream.c @@ -229,7 +229,7 @@ read_random_access_field (const gz_header *gzh, } *chunk_length = f[6] | (f[7] << 8); - if (chunk_length == 0) + if (*chunk_length == 0) { g_set_error (error, DICTZIP_ERROR, DICTZIP_ERROR_INVALID_HEADER, "invalid RA chunk length"); -- cgit v1.2.3-70-g09d2