mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3847 Fix some compiler errors and warnings.
X-SVN-Rev: 15883
This commit is contained in:
parent
6c34ce45ed
commit
c59373cb93
1 changed files with 3 additions and 2 deletions
|
@ -201,7 +201,6 @@ CharList *pkg_appendToList(CharList *l, CharList** end, const char *str)
|
|||
CharList *pkg_appendUniqueDirToList(CharList *l, CharList** end, const char *strAlias) {
|
||||
char aBuf[1024];
|
||||
char *rPtr;
|
||||
char *aPtr = NULL;
|
||||
rPtr = uprv_strrchr(strAlias, U_FILE_SEP_CHAR);
|
||||
#if defined(U_FILE_ALT_SEP_CHAR) && (U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR)
|
||||
aPtr = uprv_strrchr(strAlias, U_FILE_ALT_SEP_CHAR);
|
||||
|
@ -221,12 +220,13 @@ CharList *pkg_appendUniqueDirToList(CharList *l, CharList** end, const char *str
|
|||
aBuf[rPtr-strAlias]=0; /* no trailing slash */
|
||||
|
||||
if(!pkg_listContains(l, aBuf)) {
|
||||
return pkg_appendToList(l, end, strdup(aBuf));
|
||||
return pkg_appendToList(l, end, uprv_strdup(aBuf));
|
||||
} else {
|
||||
return l; /* already found */
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
static CharList *
|
||||
pkg_appendFromStrings(CharList *l, CharList** end, const char *s, int32_t len)
|
||||
{
|
||||
|
@ -258,6 +258,7 @@ pkg_appendFromStrings(CharList *l, CharList** end, const char *s, int32_t len)
|
|||
|
||||
return l;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue