diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-08 22:20:22 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-13 08:56:44 -0400 |
commit | 78e334b50f12a3ef386fb5de03d0549fa853c692 (patch) | |
tree | 975b79ccda731585d9bc56a2ef0baa830d833dc2 /src/basic | |
parent | 025ef1d2264b24e77283d312dede8af01fa050f6 (diff) |
basic/util: silence stupid gcc warnings about unitialized variable
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index 957b0e1ff1..b70c50047f 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -792,10 +792,11 @@ int update_reboot_parameter_and_warn(const char *param) { return 0; } - RUN_WITH_UMASK(0022) + RUN_WITH_UMASK(0022) { r = write_string_file("/run/systemd/reboot-param", param, WRITE_STRING_FILE_CREATE); - if (r < 0) - return log_warning_errno(r, "Failed to write reboot parameter file: %m"); + if (r < 0) + return log_warning_errno(r, "Failed to write reboot parameter file: %m"); + } return 0; } |