Commit 3edd4a24 authored by Max Kellermann's avatar Max Kellermann

update_walk: use directory_make_child()

parent 535a61b5
...@@ -344,11 +344,8 @@ update_archive_tree(struct directory *directory, char *name) ...@@ -344,11 +344,8 @@ update_archive_tree(struct directory *directory, char *name)
if (tmp) { if (tmp) {
*tmp = 0; *tmp = 0;
//add dir is not there already //add dir is not there already
if ((subdir = directory_get_child(directory, name)) == NULL) { subdir = directory_make_child(directory, name);
//create new directory subdir->device = DEVICE_INARCHIVE;
subdir = directory_new_child(directory, name);
subdir->device = DEVICE_INARCHIVE;
}
//create directories first //create directories first
update_archive_tree(subdir, tmp+1); update_archive_tree(subdir, tmp+1);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment