소스 검색

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++;