From fb2514f3e29c140735e2ffccda4affffdb5b253d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 14 Nov 2018 17:28:13 +0200 Subject: [PATCH] Fix a thinko in fileio.c * src/fileio.c (get_homedir): Fix last change. Suggested by Paul Eggert . --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 59446ac1833..d9795715f9e 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1663,7 +1663,7 @@ get_homedir (void) /* getpw* functions return UTF-8 encoded file names, whereas egetenv returns strings in locale encoding, so we need to convert for consistency. */ - char homedir_utf8[MAX_UTF8_PATH]; + static char homedir_utf8[MAX_UTF8_PATH]; if (home) { filename_from_ansi (home, homedir_utf8); -- 2.39.2