From: Andrew Tridgell Date: Tue, 6 Apr 1999 12:30:36 +0000 (+0000) Subject: handle the case of an empty file list in get_local_name X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/cec8aa7724d6d93d62ff60a264d1c800a580ba9b handle the case of an empty file list in get_local_name --- diff --git a/main.c b/main.c index 35f64007..db9201af 100644 --- a/main.c +++ b/main.c @@ -208,7 +208,7 @@ static char *get_local_name(struct file_list *flist,char *name) return name; } - if (flist->count == 1) + if (flist->count <= 1) return name; if (do_mkdir(name,0777 & ~orig_umask) != 0) {