mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1992 Put some important deleted code back in.
X-SVN-Rev: 9257
This commit is contained in:
parent
bd7952898b
commit
3c7c456595
1 changed files with 4 additions and 0 deletions
|
@ -825,6 +825,10 @@ u_setDataDirectory(const char *directory) {
|
|||
length=uprv_strlen(directory);
|
||||
newDataDir = (char *)uprv_malloc(length + 2);
|
||||
uprv_strcpy(newDataDir, directory);
|
||||
if(newDataDir[length-1]!=U_FILE_SEP_CHAR) {
|
||||
newDataDir[length++]=U_FILE_SEP_CHAR;
|
||||
newDataDir[length] = 0;
|
||||
}
|
||||
|
||||
umtx_lock(NULL);
|
||||
if (gDataDirectory) {
|
||||
|
|
Loading…
Add table
Reference in a new issue