diff --git a/src/system/libroot/posix/locale/locale_t.cpp b/src/system/libroot/posix/locale/locale_t.cpp index 478150223d..343b9fd67b 100644 --- a/src/system/libroot/posix/locale/locale_t.cpp +++ b/src/system/libroot/posix/locale/locale_t.cpp @@ -81,6 +81,8 @@ duplocale(locale_t l) newBackend->SetLocale(lc, backend->SetLocale(lc, NULL)); } + newObj->magic = LOCALE_T_MAGIC; + return (locale_t)newObj; }