Преглед изворни кода

Fix multiple config item removal. Thanks to zyxwvu Shi <i@shiyc.cn>

Serj Kalichev пре 3 година
родитељ
комит
090989200b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      konf/tree/tree.c

+ 1 - 1
konf/tree/tree.c

@@ -276,9 +276,9 @@ int konf_tree_del_pattern(konf_tree_t *this,
 			res++;
 			continue;
 		}
+		lub_list_node_copy(tmp, iter);
 		lub_list_del(this->list, iter);
 		konf_tree_delete(conf);
-		lub_list_node_copy(tmp, iter);
 		lub_list_node_free(iter);
 		iter = tmp;
 		del_cnt++;