From a41f238042e59d88161098bde5e8dfc76be6a01f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 19 Jul 2026 15:54:57 +0200 Subject: [PATCH] tweaks: avoid a false positive when doing static analysis (Found with Clang's `scan-build`.) --- src/browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser.c b/src/browser.c index 7b54b229..da462213 100644 --- a/src/browser.c +++ b/src/browser.c @@ -387,7 +387,7 @@ char *browse(char *path) * were in before backing up to "..". */ size_t old_selected; /* The number of the selected file before the current selected file. */ - DIR *dir; + DIR *dir = NULL; /* The directory whose contents we are showing. */ char *chosen = NULL; /* The name of the file that the user picked, or NULL if none. */