diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-13 13:46:55 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-13 13:49:30 +0200 |
commit | 0318424540d3cfd2fce15c6999066beb4d80c44d (patch) | |
tree | 6398ce9528100d6cbd081973b64b6161ad3dd89a | |
parent | 8d5885bfdf5d3501c87745a1bacfe786336c304d (diff) | |
download | fiv-0318424540d3cfd2fce15c6999066beb4d80c44d.tar.gz fiv-0318424540d3cfd2fce15c6999066beb4d80c44d.tar.xz fiv-0318424540d3cfd2fce15c6999066beb4d80c44d.zip |
Handle LibTIFF errors correctly
-rw-r--r-- | fiv-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3039,7 +3039,8 @@ open_libtiff( // We inform about unsupported directories, but do not fail on them. GError *err = NULL; if (!try_append_page( - load_libtiff_directory(tiff, &err), &result, &result_tail)) { + load_libtiff_directory(tiff, &err), &result, &result_tail) && + err) { add_warning(ctx, "%s", err->message); g_error_free(err); } |