X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/common/udata.cpp diff --git a/icuSources/common/udata.cpp b/icuSources/common/udata.cpp index c4f8752a..0837893e 100644 --- a/icuSources/common/udata.cpp +++ b/icuSources/common/udata.cpp @@ -806,7 +806,7 @@ static UBool extendICUData(UErrorCode *pErr) * Use a specific mutex to avoid nested locks of the global mutex. */ #if MAP_IMPLEMENTATION==MAP_STDIO - static UMTX extendICUDataMutex = NULL; + static UMutex extendICUDataMutex = U_MUTEX_INITIALIZER; umtx_lock(&extendICUDataMutex); #endif if(!gHaveTriedToLoadCommonData) {