timeshift: fix NULL ptr issue
This commit is contained in:
parent
dace377855
commit
06f83663c1
1 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,8 @@ timeshift_file_t *timeshift_filemgr_get ( timeshift_t *ts, int create )
|
|||
tsf_tl = tsf_tmp;
|
||||
}
|
||||
|
||||
tsf_tl->refcount++;
|
||||
if (tsf_tl)
|
||||
tsf_tl->refcount++;
|
||||
return tsf_tl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue