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)
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->device = DEVICE_INARCHIVE;
}
subdir = directory_make_child(directory, name);
subdir->device = DEVICE_INARCHIVE;
//create directories first
update_archive_tree(subdir, tmp+1);
} 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