From d00a2ed01ab26e6197f0c60c0ac3feeb87d90d9c Mon Sep 17 00:00:00 2001 From: Jeroen Derks Date: Mon, 20 Jan 2025 17:44:54 +0100 Subject: [PATCH] Update Main.vala function restore_current_system check that dst_root is not null Fixes segmentation fault: ``` Thread 1 "timeshift" received signal SIGSEGV, Segmentation fault. 0x00005555555a2fb9 in main_get_restore_current_system (self=0x555555670010) at ../src/Core/Main.vala:1895 1895 ((dst_root.device == sys_root.device) || (dst_root.uuid == sys_root.uuid))){ ``` --- src/Core/Main.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Main.vala b/src/Core/Main.vala index a47a3aed..8ff75fa9 100644 --- a/src/Core/Main.vala +++ b/src/Core/Main.vala @@ -1892,7 +1892,7 @@ public class Main : GLib.Object{ public bool restore_current_system{ get { if ((sys_root != null) && - ((dst_root.device == sys_root.device) || (dst_root.uuid == sys_root.uuid))){ + ((dst_root != null && dst_root.device == sys_root.device) || (dst_root != null && dst_root.uuid == sys_root.uuid))){ return true; }