handle the case of an empty file list in get_local_name

This commit is contained in:
Andrew Tridgell committed 1999-04-06 12:30:36 +00:00
1 parent 4c36a13ef2
commit cec8aa7724
1 file changed
+1 -1
+1 -1
View File
@@ -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) {