chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9eabf9e
)
use clear_children() more consistently
author
rjk@greenend.org.uk
<>
Sun, 29 Jul 2007 16:56:54 +0000
(17:56 +0100)
committer
rjk@greenend.org.uk
<>
Sun, 29 Jul 2007 16:56:54 +0000
(17:56 +0100)
disobedience/choose.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/choose.c
b/disobedience/choose.c
index 842a2000e4ca9c52d801c9f10578f9b9d1a943e7..565902d6539f0923381aa5e4448d069f7fb82529 100644
(file)
--- a/
disobedience/choose.c
+++ b/
disobedience/choose.c
@@
-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(). */
D(("fill_search_node %s", cn->path));
/* We depend on the search results being sorted as by compare_path(). */
- c
n->children.nvec = 0
;
+ c
lear_children(cn)
;
for(n = 0; n < nsearchresults; ++n) {
/* We only care about descendants of CN */
if(!is_descendant(cn->path, searchresults[n]))
for(n = 0; n < nsearchresults; ++n) {
/* We only care about descendants of CN */
if(!is_descendant(cn->path, searchresults[n]))