update_walk: use directory_make_child()

This commit is contained in:
Max Kellermann 2012-02-02 17:59:46 +01:00
parent 535a61b5a9
commit 3edd4a24af

View File

@ -344,11 +344,8 @@ update_archive_tree(struct directory *directory, char *name)
if (tmp) {
*tmp = 0;
//add dir is not there already
if ((subdir = directory_get_child(directory, name)) == NULL) {
//create new directory
subdir = directory_new_child(directory, name);
subdir = directory_make_child(directory, name);
subdir->device = DEVICE_INARCHIVE;
}
//create directories first
update_archive_tree(subdir, tmp+1);
} else {