duplocale: fix missing locale magic when creating a new locale.
Fixes #18345. Change-Id: Ibedfa973b371b65a502dc655eae65f4ed0833144
This commit is contained in:
parent
44daad619e
commit
4d8698c300
@ -81,6 +81,8 @@ duplocale(locale_t l)
|
||||
newBackend->SetLocale(lc, backend->SetLocale(lc, NULL));
|
||||
}
|
||||
|
||||
newObj->magic = LOCALE_T_MAGIC;
|
||||
|
||||
return (locale_t)newObj;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user