Skip to content

Commit

Permalink
main: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit ac10f7e)
(cherry picked from commit 01dce7e)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent fedee56 commit 1ee8e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,7 @@ static void setenv_manager_environment(void) {

r = putenv_dup(*p, true);
if (r < 0)
log_warning_errno(errno, "Failed to setenv \"%s\", ignoring: %m", *p);
log_warning_errno(r, "Failed to setenv \"%s\", ignoring: %m", *p);
}
}

Expand Down

0 comments on commit 1ee8e3b

Please sign in to comment.