fix a weird behavior denoted by valgrind
authorLaurent Mazet <mazet@softndesign.org>
Fri, 24 Jan 2025 11:25:32 +0000 (12:25 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Fri, 24 Jan 2025 11:25:32 +0000 (12:25 +0100)
fm.c

diff --git a/fm.c b/fm.c
index 09ed7b3d3e52efe345853a88bed5c800fa58c5a0..12d664382fc1ab5e6b1d66b9d265131caef5ac7f 100644 (file)
--- a/fm.c
+++ b/fm.c
@@ -205,6 +205,7 @@ int main (int argc, char *argv[])
             if (list[i] == NULL) {
                 list[i] = exploredir (dirname[i]);
                 if (list[i] == NULL) {
+                    refresh ();
                     endwin ();
                     VERBOSE (ERROR, fprintf (stderr, "can't read directory '%s'\n", (dirname[i]) ? dirname[i] : "."));
                     int _i;