summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/pager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c
index 41da820938..1fa87a784e 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -74,9 +74,8 @@ int pager_open(bool jump_to_end) {
pager_pid = fork();
if (pager_pid < 0) {
- r = log_error_errno(errno, "Failed to fork pager: %m");
safe_close_pair(fd);
- return r;
+ return log_error_errno(errno, "Failed to fork pager: %m");
}
/* In the child start the pager */