Fixed a crash bug when hlink_list is NULL and a link_u.links

pointer in one of the file_struct nodes is not.
This commit is contained in:
Wayne Davison committed 2004-03-26 16:46:20 +00:00
1 parent f86b0f2e7b
commit 028fdddb49
1 file changed
+1 -1
+1 -1
View File
@@ -135,7 +135,7 @@ void init_hard_links(struct file_list *flist)
int hard_link_check(struct file_struct *file, int skip)
{
if (!file->link_u.links)
if (!hlink_list || !file->link_u.links)
return 0;
if (skip && !(file->flags & FLAG_HLINK_EOL))
hlink_list[file->F_HLINDEX] = file->F_NEXT;