about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-12-05 21:49:18 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-12-05 21:49:18 +0100
commitcdadc0f97d6baea98eb4780e69af816ba0070f56 (patch)
tree98c6074fc6e2b7b23fc1443de54856630a364113
parent1be82ff7637a17229edbc775c60226daa880d28d (diff)
downloadlr-cdadc0f97d6baea98eb4780e69af816ba0070f56.tar.gz
lr-cdadc0f97d6baea98eb4780e69af816ba0070f56.tar.xz
lr-cdadc0f97d6baea98eb4780e69af816ba0070f56.zip
initialize new.total
-rw-r--r--lr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lr.c b/lr.c
index 4d45bea..ffd4ca3 100644
--- a/lr.c
+++ b/lr.c
@@ -2262,6 +2262,7 @@ recurse(char *path, struct history *h, int guessdir)
 
 	new.chain = h;
 	new.level = h ? h->level + 1 : 0;
+	new.total = 0;
 	if (guessdir) {
 		new.dev = st.st_dev;
 		new.ino = st.st_ino;