diff --git a/src/system/libroot/os/find_paths.cpp b/src/system/libroot/os/find_paths.cpp index 6b8cd875df..bfc02009b3 100644 --- a/src/system/libroot/os/find_paths.cpp +++ b/src/system/libroot/os/find_paths.cpp @@ -87,8 +87,8 @@ public: static InstallationLocations* Default() { - char sBuffer[sizeof(InstallationLocations)]; - InstallationLocations* sDefaultLocations + static char sBuffer[sizeof(InstallationLocations)]; + static InstallationLocations* sDefaultLocations = new(&sBuffer) InstallationLocations; return sDefaultLocations; }