Skip to content

Commit

Permalink
imageio_tiff: remove leftover assert
Browse files Browse the repository at this point in the history
  • Loading branch information
pmjdebruijn authored and Pascal de Bruijn committed Feb 26, 2014
1 parent d8890c6 commit ea8a348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/imageio_tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <tiffio.h>
#include <inttypes.h>
#include <strings.h>
#include <assert.h>

typedef struct tiff_t {
TIFF *tiff;
Expand Down Expand Up @@ -219,7 +218,8 @@ dt_imageio_open_tiff(
if (t.spp > 1 && config != PLANARCONFIG_CONTIG)
{
fprintf(stderr, "[tiff_open] warning: planar config other than contig is not supported.\n");
assert(0);
TIFFClose(t.tiff);
return DT_IMAGEIO_FILE_CORRUPTED;
}

int ok = 1;
Expand Down

0 comments on commit ea8a348

Please sign in to comment.