diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2008-12-28 19:03:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-29 07:26:17 +0100 |
commit | 6ad7be95253597f371b1ac8b979f75cee3c7a8b3 (patch) | |
tree | 3409ae65ecea96e61599069d491b4d067d5f0f80 /src/update.c | |
parent | c15ac572711cf912ff67a45e655cd83ce9ed3a1e (diff) | |
download | mpd-6ad7be95253597f371b1ac8b979f75cee3c7a8b3.tar.gz mpd-6ad7be95253597f371b1ac8b979f75cee3c7a8b3.tar.xz mpd-6ad7be95253597f371b1ac8b979f75cee3c7a8b3.zip |
update: fixing empty filenames in archives
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c index f51ccc7b6..776fa050b 100644 --- a/src/update.c +++ b/src/update.c @@ -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) { |