timeshift: fix NULL ptr issue

(cherry picked from commit 06f83663c1)
This commit is contained in:
Adam Sutton 2013-02-20 11:18:30 +00:00
parent b6e6e78921
commit 899773ee60

View file

@ -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;
}