summaryrefslogtreecommitdiff
path: root/src/slideshow.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/slideshow.c
parent61d17588149df64e54734330103ebe0622a8caa0 (diff)
parenta23571495beb95e146755e16b1a02dff03624625 (diff)
Merge pull request #531 from Ferada/fix-some-warnings
Fix some warnings from `gcc`.
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 9154d2d..87ec4cb 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -385,7 +385,8 @@ void feh_action_run(feh_file * file, char *action, winwidget winwid)
if (opt.verbose && !opt.list && !opt.customlist)
fprintf(stderr, "Running action -->%s<--\n", sys);
- system(sys);
+ if (system(sys) == -1)
+ perror("running action via system() failed");
}
return;
}