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 problem with merging dot dirs with non-dot-dir args
[rsync/rsync.git]
/
rsync.c
diff --git
a/rsync.c
b/rsync.c
index
79ec384
..
7f8d65c
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-265,7
+265,8
@@
int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr,
invalid_ndx:
rprintf(FERROR,
"Invalid file index: %d (%d - %d) with iflags %x [%s]\n",
invalid_ndx:
rprintf(FERROR,
"Invalid file index: %d (%d - %d) with iflags %x [%s]\n",
- ndx, first_flist->ndx_start - 1, first_flist->prev->ndx_end,
+ ndx, first_flist ? first_flist->ndx_start - 1 : -1,
+ first_flist ? first_flist->prev->ndx_end : -1,
iflags, who_am_i());
exit_cleanup(RERR_PROTOCOL);
}
iflags, who_am_i());
exit_cleanup(RERR_PROTOCOL);
}