Browse Source

Fix little bug: ensure number of children is incremented when adding a

new node to a dir.
release-1.5.4.branch
Vreixo Formoso 15 years ago
parent
commit
007be29c6d
  1. 4
      src/tree.c

4
src/tree.c

@ -90,7 +90,7 @@ int iso_tree_add_new_dir(IsoDir *parent, const char *name, IsoDir **dir)
if (dir) {
*dir = node;
}
return ISO_SUCCESS;
return ++parent->nchildren;
}
/**
@ -178,5 +178,5 @@ int iso_tree_add_new_symlink(IsoDir *parent, const char *name,
if (link) {
*link = node;
}
return ISO_SUCCESS;
return ++parent->nchildren;
}

Loading…
Cancel
Save