Fixed a bug in match_hard_links() where an empty directory would try

to allocate 0 bytes of memory (which can fail on some OSes).
This commit is contained in:
Wayne Davison committed 2008-07-20 20:34:06 -07:00
1 parent eabc85ef5e
commit ced4fd8993
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -4,6 +4,9 @@ Changes since 3.0.3:
BUG FIXES:
- Fixed a bug in the hard-linking code where it would sometimes try to
allocate 0 bytes of memory (which fails on system OSes).
- Changed the way --progress overwrites its prior output in order to make
it nearly impossible for the progress to get overwritten by an error.
+1 -1
View File
@@ -184,7 +184,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count)
* to first when we're done. */
void match_hard_links(struct file_list *flist)
{
if (!list_only) {
if (!list_only && flist->used) {
int i, ndx_count = 0;
int32 *ndx_list;