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