Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8af1bc9
)
In clean_flist(), fixed the setting of the flist->high value for an
author
Wayne Davison
<wayned@samba.org>
Sun, 12 Jun 2005 06:07:23 +0000
(06:07 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 12 Jun 2005 06:07:23 +0000
(06:07 +0000)
empty list so that it can't cause a crash if it gets passed to
flist_find().
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
5526e20
..
64ff007
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1471,8
+1471,12
@@
static void clean_flist(struct file_list *flist, int strip_root, int no_dups)
{
int i, prev_i = 0;
{
int i, prev_i = 0;
- if (!flist || flist->count == 0)
+ if (!flist)
+ return;
+ if (flist->count == 0) {
+ flist->high = -1;
return;
return;
+ }
sorting_flist = flist;
qsort(flist->files, flist->count,
sorting_flist = flist;
qsort(flist->files, flist->count,