Remove a leftover abort and some fixes from cppcheck.

This commit is contained in:
nicm
2019-05-30 20:54:03 +00:00
parent 8fb796b5b3
commit b26523c26d
5 changed files with 5 additions and 6 deletions

View File

@ -480,7 +480,7 @@ mode_tree_add(struct mode_tree_data *mtd, struct mode_tree_item *parent,
saved = mode_tree_find_item(&mtd->saved, tag);
if (saved != NULL) {
if (parent == NULL || (parent != NULL && parent->expanded))
if (parent == NULL || parent->expanded)
mti->tagged = saved->tagged;
mti->expanded = saved->expanded;
} else if (expanded == -1)