aboutsummaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/thumbs.c b/thumbs.c
index a8f498b..3e6cc88 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -276,10 +276,10 @@ bool tns_load(tns_t *tns, int n, bool force)
char tmppath[] = "/tmp/sxiv-XXXXXX";
Imlib_Image tmpim;
- if ((ed = exif_data_new_from_file(file->path)) != NULL &&
- ed->data != NULL && ed->size > 0)
- {
- if ((tmpfd = mkstemp(tmppath)) >= 0) {
+ if ((ed = exif_data_new_from_file(file->path)) != NULL) {
+ if (ed->data != NULL && ed->size > 0 &&
+ (tmpfd = mkstemp(tmppath)) >= 0)
+ {
err = write(tmpfd, ed->data, ed->size) != ed->size;
close(tmpfd);