mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 22:58:16 -04:00
In clean_flist(), fixed the setting of the flist->high value for an
empty list so that it can't cause a crash if it gets passed to flist_find().
This commit is contained in:
1 parent
8af1bc9011
commit
910ee8c92e
1 file changed
+5
-1
@@ -1471,8 +1471,12 @@ static void clean_flist(struct file_list *flist, int strip_root, int no_dups)
|
||||
{
|
||||
int i, prev_i = 0;
|
||||
|
||||
if (!flist || flist->count == 0)
|
||||
if (!flist)
|
||||
return;
|
||||
if (flist->count == 0) {
|
||||
flist->high = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
sorting_flist = flist;
|
||||
qsort(flist->files, flist->count,
|
||||
|
||||
Reference in new issue
Block a user