diff --git a/src/path.c b/src/path.c index 59a91a0f7..15277a40b 100644 --- a/src/path.c +++ b/src/path.c @@ -102,7 +102,7 @@ void path_global_init(void) * However this is true only if helpers are used. * MPD uses regular functions. * Those functions use encoding determined by GetACP(). */ - char win_charset[13]; + static char win_charset[13]; sprintf(win_charset, "cp%u", GetACP()); charset = win_charset; #endif