update: fixing empty filenames in archives
This commit is contained in:
committed by
Max Kellermann
parent
c15ac57271
commit
6ad7be9525
@@ -296,6 +296,10 @@ update_archive_tree(struct directory *directory, char *name)
|
||||
//create directories first
|
||||
update_archive_tree(subdir, tmp+1);
|
||||
} else {
|
||||
if (strlen(name) == 0) {
|
||||
g_warning("archive returned directory only\n");
|
||||
return;
|
||||
}
|
||||
//add file
|
||||
song = songvec_find(&directory->songs, name);
|
||||
if (song == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user