Explorar el Código

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

Serj Kalichev hace 3 años
padre
commit
090989200b
Se han modificado 1 ficheros con 1 adiciones y 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++;