From 5af9b79e4ecd07a600ded1a801023536cde97f95 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 10 Sep 2022 23:19:46 +0200 Subject: recurse: initialize stat buffer Closes #22. --- lr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.4.1