summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
authorOlof-Joachim Frahm <olof@shiftleft.io>2020-05-29 11:41:58 +0200
committerOlof-Joachim Frahm <olof@shiftleft.io>2020-05-29 11:41:58 +0200
commita23571495beb95e146755e16b1a02dff03624625 (patch)
treee373c1e1e68539407a076003f8b92254941cce17 /src/slideshow.c
parentc9e024daeb43094696a05c8d03ef6682ed683dae (diff)
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 00425d1..591848c 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -364,7 +364,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;
}