changeset 194:805e99848aea

grokdsn: buglet in the hierarchy traversal order
author Michael Spacefalcon <falcon@ivan.Harhan.ORG>
date Wed, 07 Jan 2015 22:15:51 +0000
parents 37f78f986a0a
children ed7318a03e0c
files miscprog/grokdsn.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/miscprog/grokdsn.c	Wed Jan 07 08:09:30 2015 +0000
+++ b/miscprog/grokdsn.c	Wed Jan 07 22:15:51 2015 +0000
@@ -272,12 +272,12 @@
 	if (ndir >= 0)
 		dump_dir_level(ndir, indent);
 	dump_dir_entry(rec, indent);
+	ndir = le32toh(rec->subtree_dirid);
+	if (ndir >= 0)
+		dump_dir_level(ndir, indent + 2);
 	ndir = le32toh(rec->right_child);
 	if (ndir >= 0)
 		dump_dir_level(ndir, indent);
-	ndir = le32toh(rec->subtree_dirid);
-	if (ndir >= 0)
-		dump_dir_level(ndir, indent + 2);
 	return(0);
 }