diff options
author | rossf <rossf> | 2003-12-05 14:10:58 +0000 |
---|---|---|
committer | rossf <rossf> | 2003-12-05 14:10:58 +0000 |
commit | 6cda8dc20ddb84dd089d5f26e4d57f41779dbe24 (patch) | |
tree | 27d756ef7e9b142ed48bc2ab91d6451dcd78b21f | |
parent | 765e97f66d8926881f765623c2cf5d981f31a9a3 (diff) | |
download | libtiff-6cda8dc20ddb84dd089d5f26e4d57f41779dbe24.tar.gz |
Fixed a bug, mea culpa.
-rw-r--r-- | libtiff/tif_codec.c | 15 |
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; } |