hibernate-util: return 1 for hibernation_is_safe only when all checks pass
The return value is currently not used, but let's correct this.
This commit is contained in:
@@ -446,7 +446,7 @@ int hibernation_is_safe(void) {
|
||||
"Not running on EFI and resume= is not set. Hibernation is not safe.");
|
||||
|
||||
if (bypass_space_check)
|
||||
return true;
|
||||
return 0;
|
||||
|
||||
r = get_proc_meminfo_active(&active);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user