Skip to content

Commit

Permalink
Hashlist comparison fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kabachuha authored and irydacea committed Oct 15, 2020
1 parent bc0aab2 commit b0dfad8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/addon/validation.cpp
Expand Up @@ -359,11 +359,15 @@ bool contains_hashlist(const config& from, const config& to)
for(const config& d : to.child_range("dir")) {
const config& origin_dir = from.find_child("dir", "name", d["name"]);
if(origin_dir) {
return contains_hashlist(origin_dir, d);
if(!contains_hashlist(origin_dir, d)) {
return false;
}
} else {
// The case of empty new subdirectories
const config dummy_dir = config("name", d["name"]);
return contains_hashlist(dummy_dir, d);
if(!contains_hashlist(dummy_dir, d)) {
return false;
}
}
}

Expand Down

0 comments on commit b0dfad8

Please sign in to comment.