summaryrefslogtreecommitdiff
path: root/libtiff/tif_compress.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2015-11-22 15:31:03 +0000
committerEven Rouault <even.rouault@spatialys.com>2015-11-22 15:31:03 +0000
commit1c9ef8f17c2207a160332e62f77a4235bc9b32bd (patch)
tree332866abfa9ae0fbe23f1c0a10e43e341df33832 /libtiff/tif_compress.c
parent87f02eaced68e1fd5ac8974dde2f52a156cb66c7 (diff)
downloadlibtiff-git-1c9ef8f17c2207a160332e62f77a4235bc9b32bd.tar.gz
* libtiff/*.c: fix MSVC warnings related to cast shortening and
assignment within conditional expression
Diffstat (limited to 'libtiff/tif_compress.c')
-rw-r--r--libtiff/tif_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiff/tif_compress.c b/libtiff/tif_compress.c
index b0a430cf..f6b32df1 100644
--- a/libtiff/tif_compress.c
+++ b/libtiff/tif_compress.c
@@ -1,4 +1,4 @@
-/* $Id: tif_compress.c,v 1.23 2015-10-28 19:10:20 erouault Exp $ */
+/* $Id: tif_compress.c,v 1.24 2015-11-22 15:31:03 erouault Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -227,7 +227,7 @@ TIFFUnRegisterCODEC(TIFFCodec* c)
codec_t* cd;
codec_t** pcd;
- for (pcd = &registeredCODECS; (cd = *pcd); pcd = &cd->next)
+ for (pcd = &registeredCODECS; (cd = *pcd) != NULL; pcd = &cd->next)
if (cd->info == c) {
*pcd = cd->next;
_TIFFfree(cd);