X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/81c3a3a86e47acad6b277531cb6153a95488665d..fd4893155d5226d32f350d15cc3e29beec677f39:/flist.c diff --git a/flist.c b/flist.c index 94a1b2cb..0906f39f 100644 --- a/flist.c +++ b/flist.c @@ -731,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) {