summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-28 09:59:30 +0100
committerGitHub <noreply@github.com>2021-02-28 09:59:30 +0100
commit32924c21ca08e7203ffb376896a4012bd46f1f93 (patch)
tree2a7079ad7c7bea1c30494ff29eb28ffff94fa14a /src/imlib.c
parent61d17588149df64e54734330103ebe0622a8caa0 (diff)
parenta23571495beb95e146755e16b1a02dff03624625 (diff)
Merge pull request #531 from Ferada/fix-some-warnings
Fix some warnings from `gcc`.
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 9ee4c08..fc81bdd 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -637,9 +637,7 @@ static char *feh_dcraw_load_image(char *filename)
close(fd);
return NULL;
} else if (childpid == 0) {
-
- close(1);
- dup(fd);
+ dup2(fd, STDOUT_FILENO);
close(fd);
alarm(opt.conversion_timeout);