From: Laurent Mazet Date: Fri, 24 Jan 2025 11:25:32 +0000 (+0100) Subject: fix a weird behavior denoted by valgrind X-Git-Tag: v1.0~5 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=9ca6065ace1d369b78d88cdf4ec6c72cb630e053;p=fm.git fix a weird behavior denoted by valgrind --- diff --git a/fm.c b/fm.c index 09ed7b3..12d6643 100644 --- 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;