From 87a34ce56a9e9f498b68cb74da9aff7bac88f4f4 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 30 Jan 2007 03:57:55 +0000 Subject: [PATCH 1/1] 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. --- rsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1