diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2021-07-09 00:00:44 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2021-07-09 00:00:44 +0100 |
commit | 8d918752078f8b418e7f210aa2e62347d2b43a24 (patch) | |
tree | 8f2ceaffeee39278004d6a37f1213f4ffb45bcfc | |
parent | 27df0fb8fedfaa3ebdada9cdf25cf82e520b27e3 (diff) | |
download | imv-8d918752078f8b418e7f210aa2e62347d2b43a24.tar.gz |
Suppress annoying TIFF errors
Fixes #252
-rw-r--r-- | src/backend_libtiff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend_libtiff.c b/src/backend_libtiff.c index b0e955f..6f987e7 100644 --- a/src/backend_libtiff.c +++ b/src/backend_libtiff.c @@ -110,6 +110,8 @@ static enum backend_result open_path(const char *path, struct imv_source **src) { struct private private; + TIFFSetErrorHandler(NULL); + private.tiff = TIFFOpen(path, "r"); if (!private.tiff) { /* Header is read, so no BAD_PATH check here */ |