Explorar o código

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

Serj Kalichev %!s(int64=3) %!d(string=hai) anos
pai
achega
090989200b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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++;