Mention the changes in the "patches" dir.
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 51584f2..0906f39 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -46,7 +46,6 @@ extern char *files_from;
 extern int filesfrom_fd;
 
 extern int one_file_system;
-extern int make_backups;
 extern int preserve_links;
 extern int preserve_hard_links;
 extern int preserve_perms;
@@ -732,6 +731,8 @@ struct file_struct *make_file(char *fname,
        char *basename, *dirname, *bp;
        unsigned short flags = 0;
 
+       if (!flist)     /* lastdir isn't valid if flist is NULL */
+               lastdir_len = -1;
 
        if (strlcpy(thisname, fname, sizeof thisname)
            >= sizeof thisname - flist_dir_len) {