about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-09-10 23:19:46 +0200
committerLeah Neukirchen <leah@vuxu.org>2022-09-10 23:19:46 +0200
commit5af9b79e4ecd07a600ded1a801023536cde97f95 (patch)
tree3808730fda57b9ad144ebc4751625bf0b939970d
parent3be410703d4aa3a2c42f4b8b806fd769b18d0b61 (diff)
downloadlr-5af9b79e4ecd07a600ded1a801023536cde97f95.tar.gz
lr-5af9b79e4ecd07a600ded1a801023536cde97f95.tar.xz
lr-5af9b79e4ecd07a600ded1a801023536cde97f95.zip
recurse: initialize stat buffer
Closes #22.
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index da57ba7..7635e31 100644
--- a/lr.c
+++ b/lr.c
@@ -2250,7 +2250,7 @@ static int
 recurse(char *path, struct history *h, int guessdir)
 {
 	size_t l = strlen(path), j = l && path[l-1] == '/' ? l - 1 : l;
-	struct stat st;
+	struct stat st = { 0 };
 	struct history new;
 	int r;
 	ino_t entries;