summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-07-25 07:42:43 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-07-25 07:42:43 +0200
commit8d586931e003e79720039c8241d14d4a6bbe944c (patch)
treef8e2af9501f67ff85c0f73c469bf154ffe1d0121 /src
parentf8a839511452d7e94c2f9c445b1a4ab8eafd66c6 (diff)
downloadtdv-8d586931e003e79720039c8241d14d4a6bbe944c.tar.gz
tdv-8d586931e003e79720039c8241d14d4a6bbe944c.tar.xz
tdv-8d586931e003e79720039c8241d14d4a6bbe944c.zip
Thanks, Coverity
Diffstat (limited to 'src')
-rw-r--r--src/dictzip-input-stream.c2
1 files changed, 1 insertions, 1 deletions
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");