aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/ls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 04f64152..7dc85ac9 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -299,6 +299,7 @@ static void listfiles(int dirfd, struct dirtree *indir)
}
memset(totals, 0, sizeof(totals));
+ if (CFG_TOYBOX_DEBUG) memset(len, 0, sizeof(len));
// Top level directory was already populated by main()
if (!indir->parent) {