summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Finlayson <libtiff@apexinternetsoftware.com>2003-12-05 14:10:58 +0000
committerRoss Finlayson <libtiff@apexinternetsoftware.com>2003-12-05 14:10:58 +0000
commit10e9be26d1589d175ef6b44019fcd91b9e0f3611 (patch)
treeb911305eb9e9656b837bca6d82ef977e847cce07
parent3e9be7b07d8402b90fb1df4c1e945dc8ca157a8d (diff)
downloadlibtiff-git-10e9be26d1589d175ef6b44019fcd91b9e0f3611.tar.gz
Fixed a bug, mea culpa.
-rw-r--r--libtiff/tif_codec.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/libtiff/tif_codec.c b/libtiff/tif_codec.c
index a09eee05..df0827fb 100644
--- a/libtiff/tif_codec.c
+++ b/libtiff/tif_codec.c
@@ -1,4 +1,4 @@
-/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_codec.c,v 1.6 2003-11-21 20:40:50 rossf Exp $ */
+/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_codec.c,v 1.7 2003-12-05 14:10:58 rossf Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -136,10 +136,15 @@ TIFFIsCODECConfigured(uint16 scheme)
{
const TIFFCodec* codec = TIFFFindCODEC(scheme);
- if(codec == NULL)
- return 0;
- if( codec->init != (TIFFInitMethod) _notConfigured)
- return 1;
+ if(codec == NULL) {
+ return 0;
+ }
+ if(codec->init == NULL) {
+ return 0;
+ }
+ if(codec->init != NotConfigured){
+ return 1;
+ }
return 0;
}