diff options
author | Wayne Davison <wayned@samba.org> | 2004-03-26 16:46:20 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-03-26 16:46:20 +0000 |
commit | 028fdddb497b6ac2bdccd270bdd1997704621f3a (patch) | |
tree | b66da92fa49fdb27f8e934fff7f4945b8ce28f61 /hlink.c | |
parent | f86b0f2e7b1b7dcc00509e88880943e83993fe85 (diff) | |
download | rsync-028fdddb497b6ac2bdccd270bdd1997704621f3a.tar.gz rsync-028fdddb497b6ac2bdccd270bdd1997704621f3a.tar.bz2 rsync-028fdddb497b6ac2bdccd270bdd1997704621f3a.zip |
Fixed a crash bug when hlink_list is NULL and a link_u.links
pointer in one of the file_struct nodes is not.
Diffstat (limited to 'hlink.c')
-rw-r--r-- | hlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |