chiark / gitweb /
use clear_children() more consistently
authorrjk@greenend.org.uk <>
Sun, 29 Jul 2007 16:56:54 +0000 (17:56 +0100)
committerrjk@greenend.org.uk <>
Sun, 29 Jul 2007 16:56:54 +0000 (17:56 +0100)
disobedience/choose.c

index 842a2000e4ca9c52d801c9f10578f9b9d1a943e7..565902d6539f0923381aa5e4448d069f7fb82529 100644 (file)
@@ -433,7 +433,7 @@ static void fill_search_node(struct choosenode *cn) {
 
   D(("fill_search_node %s", cn->path));
   /* We depend on the search results being sorted as by compare_path(). */
-  cn->children.nvec = 0;
+  clear_children(cn);
   for(n = 0; n < nsearchresults; ++n) {
     /* We only care about descendants of CN */
     if(!is_descendant(cn->path, searchresults[n]))