ICU-1409 make sure uprops.dat is loaded before getting the Unicode version from it

X-SVN-Rev: 6905
This commit is contained in:
Markus Scherer 2001-11-15 00:05:07 +00:00
parent e010a39eca
commit 6a40576785

View File

@ -1032,7 +1032,11 @@ u_charCellWidth(UChar32 ch)
void u_getUnicodeVersion(UVersionInfo versionArray) {
if(versionArray!=NULL) {
uprv_memcpy(versionArray, dataVersion, U_MAX_VERSION_LENGTH);
if(HAVE_DATA) {
uprv_memcpy(versionArray, dataVersion, U_MAX_VERSION_LENGTH);
} else {
uprv_memset(versionArray, 0, U_MAX_VERSION_LENGTH);
}
}
}