X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5bf63a11f47c8b45af4ac8fa7ef940bade0a1db9..530adb762573d9f37be07eb38d0ffc7b5c401e6a:/flist.c diff --git a/flist.c b/flist.c index 51584f2c..0906f39f 100644 --- 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) {