Skip to content

Commit 7e13032

Browse files
authored
Update Main.vala function restore_current_system check that dst_root is not null (#386)
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))){ ```
1 parent 2e135ff commit 7e13032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Main.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ public class Main : GLib.Object{
20052005
public bool restore_current_system{
20062006
get {
20072007
if ((sys_root != null) &&
2008-
((dst_root.device == sys_root.device) || (dst_root.uuid == sys_root.uuid))){
2008+
((dst_root != null && dst_root.device == sys_root.device) || (dst_root != null && dst_root.uuid == sys_root.uuid))){
20092009

20102010
return true;
20112011
}

0 commit comments

Comments
 (0)