diff options
author | Wayne Davison <wayned@samba.org> | 2007-01-30 03:57:55 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-01-30 03:57:55 +0000 |
commit | 87a34ce56a9e9f498b68cb74da9aff7bac88f4f4 (patch) | |
tree | a7128cf2d1ceb1e64b8c27325ab8426c78400d7b /rsync.c | |
parent | 04c722d5e060248f6f8f01d8b9c01305c5a29d6a (diff) | |
download | rsync-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |