summaryrefslogtreecommitdiff
path: root/hlink.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-10-17 18:49:04 +0000
committerWayne Davison <wayned@samba.org>2006-10-17 18:49:04 +0000
commit7b4a40ed706b8923df4d145147810490f23b6164 (patch)
tree8f3b509578ad219a8e1d8db6c63df750f780ebf4 /hlink.c
parentf210dcadf4a921f8ca3718c0b972cee153793488 (diff)
downloadrsync-7b4a40ed706b8923df4d145147810490f23b6164.tar.gz
rsync-7b4a40ed706b8923df4d145147810490f23b6164.tar.bz2
rsync-7b4a40ed706b8923df4d145147810490f23b6164.zip
Make sure the new link_dest_used value gets zeroed on init.
Diffstat (limited to 'hlink.c')
-rw-r--r--hlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hlink.c b/hlink.c
index 77d0dc03..2ef998c6 100644
--- a/hlink.c
+++ b/hlink.c
@@ -83,6 +83,7 @@ static void link_idev_data(void)
FPTR(cur)->F_HLINDEX = to;
FPTR(cur)->F_NEXT = hlink_list[++from];
+ FPTR(cur)->link_u.links->link_dest_used = 0;
}
pool_free(idev_pool, 0, FPTR(cur)->link_u.idev);
if (from > start) {
@@ -94,6 +95,7 @@ static void link_idev_data(void)
FPTR(cur)->F_HLINDEX = to;
FPTR(cur)->F_NEXT = head;
FPTR(cur)->flags |= FLAG_HLINK_EOL;
+ FPTR(cur)->link_u.links->link_dest_used = 0;
hlink_list[to++] = head;
} else
FPTR(cur)->link_u.links = NULL;