Repositioned a misplaced assignment.
authorWayne Davison <wayned@samba.org>
Thu, 28 Dec 2006 08:57:25 +0000 (08:57 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 28 Dec 2006 08:57:25 +0000 (08:57 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 2858b35..66e373f 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -1286,7 +1286,6 @@ void send_extra_file_list(int f, int at_least)
        past_and_present = cur_flist->ndx_start - first_flist->ndx_start
                         + cur_flist->count;
        while (file_total - past_and_present < at_least) {
-               start_write = stats.total_written;
                struct file_struct *file = dir_flist->files[send_dir_ndx];
                int32 *dp;
                int dlen;
@@ -1300,6 +1299,7 @@ void send_extra_file_list(int f, int at_least)
                }
 
                flist = flist_new(0, "send_extra_file_list");
+               start_write = stats.total_written;
 
                write_int(f, NDX_FLIST_OFFSET - send_dir_ndx);
                change_local_filter_dir(fbuf, dlen, send_dir_depth);