From 232efdc5bd60be72d279a18052655a38fbc7547f Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 25 Nov 2023 15:07:17 +0800 Subject: [PATCH] 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. --- src/shared/hibernate-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c index 3eb13d48f68..2ce3781cbf6 100644 --- a/src/shared/hibernate-util.c +++ b/src/shared/hibernate-util.c @@ -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) -- 2.47.3