basic/util: silence stupid gcc warnings about unitialized variable
This commit is contained in:
+4
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user