summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-01-30 03:57:55 +0000
committerWayne Davison <wayned@samba.org>2007-01-30 03:57:55 +0000
commit87a34ce56a9e9f498b68cb74da9aff7bac88f4f4 (patch)
treea7128cf2d1ceb1e64b8c27325ab8426c78400d7b /rsync.c
parent04c722d5e060248f6f8f01d8b9c01305c5a29d6a (diff)
downloadrsync-87a34ce56a9e9f498b68cb74da9aff7bac88f4f4.tar.gz
rsync-87a34ce56a9e9f498b68cb74da9aff7bac88f4f4.tar.bz2
rsync-87a34ce56a9e9f498b68cb74da9aff7bac88f4f4.zip
The code can now set cur_flist to NULL sooner than it used to, so the
flist_for_ndx() routine needs to work when cur_flist is NULL.
Diffstat (limited to 'rsync.c')
-rw-r--r--rsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsync.c b/rsync.c
index 0a383535..cba5441a 100644
--- a/rsync.c
+++ b/rsync.c
@@ -407,7 +407,7 @@ struct file_list *flist_for_ndx(int ndx)
{
struct file_list *flist = cur_flist;
- if (!flist)
+ if (!flist && !(flist = first_flist))
return NULL;
while (ndx < flist->ndx_start) {