Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a crash if a non-incremental-recursion transfer has a
[rsync/rsync.git]
/
hlink.c
diff --git
a/hlink.c
b/hlink.c
index
812c55f
..
dd5d122
100644
(file)
--- a/
hlink.c
+++ b/
hlink.c
@@
-266,7
+266,8
@@
static char *check_prior(struct file_struct *file, int gnum,
F_HL_PREV(file) = prev_ndx = F_HL_PREV(fp);
}
F_HL_PREV(file) = prev_ndx = F_HL_PREV(fp);
}
- if ((node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) {
+ if (inc_recurse
+ && (node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) {
assert(node->data != NULL);
if (CVAL(node->data, 0) != 0) {
*prev_ndx_p = -1;
assert(node->data != NULL);
if (CVAL(node->data, 0) != 0) {
*prev_ndx_p = -1;