diff --git a/apps/tree.c b/apps/tree.c index b46835eb0c..47853f03c9 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -303,16 +303,33 @@ static int showdir(char *path, int start) if (start == -1) { + int diff_files; + /* use lastfile to determine start (default=0) */ - start = dirstart = 0; + start = 0; + for (i=0; i