From: Wayne Davison Date: Tue, 30 Jan 2007 03:57:55 +0000 (+0000) Subject: The code can now set cur_flist to NULL sooner than it used to, so the X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/87a34ce56a9e9f498b68cb74da9aff7bac88f4f4?hp=04c722d5e060248f6f8f01d8b9c01305c5a29d6a 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. --- 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) {