From: Wayne Davison Date: Fri, 26 Mar 2004 16:46:20 +0000 (+0000) Subject: Fixed a crash bug when hlink_list is NULL and a link_u.links X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/028fdddb497b6ac2bdccd270bdd1997704621f3a Fixed a crash bug when hlink_list is NULL and a link_u.links pointer in one of the file_struct nodes is not. --- diff --git a/hlink.c b/hlink.c index 110e6ede..3ee84335 100644 --- a/hlink.c +++ b/hlink.c @@ -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;