Browse Source

Don't delete non-seq lines when no sequence flag is given.

git-svn-id: https://klish.googlecode.com/svn/trunk@173 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 14 years ago
parent
commit
25b5e05fbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      konf/tree/tree.c

+ 1 - 1
konf/tree/tree.c

@@ -311,7 +311,7 @@ int konf_tree_del_pattern(konf_tree_t *this,
 		if (seq && (seq_num != 0) &&
 			(seq_num != conf->seq_num))
 			continue;
-		if (seq && (seq_num == 0))
+		if (seq && (0 == seq_num) && (0 == conf->seq_num))
 			continue;
 		lub_bintree_remove(&this->tree, conf);
 		konf_tree_delete(conf);