tweaks: avoid a false positive when doing static analysis

(Found with Clang's `scan-build`.)
This commit is contained in:
Benno Schulenberg
2026-07-19 15:54:57 +02:00
parent e18c6c95e7
commit a41f238042

View File

@@ -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. */