mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-2135 fix typo more error checking
X-SVN-Rev: 10481
This commit is contained in:
parent
a238652e4a
commit
f69999fbfc
3 changed files with 4 additions and 3 deletions
|
@ -348,6 +348,7 @@ processFile(const char *filename, const char *cp, const char *inputDir, const ch
|
|||
data = parse(ucbuf, inputDir, status);
|
||||
|
||||
if (data == NULL || U_FAILURE(*status)) {
|
||||
fprintf(stderr, "couldn't parse the file %s. Error:%s\n", filename,u_errorName(*status));
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
@ -385,6 +386,7 @@ processFile(const char *filename, const char *cp, const char *inputDir, const ch
|
|||
|
||||
}
|
||||
if(U_FAILURE(*status)) {
|
||||
fprintf(stderr, "couldn't make the res fileName for bundle %s. Error:%s\n", filename,u_errorName(*status));
|
||||
goto finish;
|
||||
}
|
||||
if(write_java== TRUE){
|
||||
|
|
|
@ -1196,8 +1196,7 @@ parseImport(char *tag, uint32_t startline, UErrorCode *status)
|
|||
}
|
||||
|
||||
len = T_FileStream_size(file);
|
||||
data = (uint8_t*)uprv_malloc(len* sizeof(uint8_t)* 3);
|
||||
uprv_memset(data,0xFF, len *3);
|
||||
data = (uint8_t*)uprv_malloc(len * sizeof(uint8_t));
|
||||
/* test for NULL */
|
||||
if(data == NULL)
|
||||
{
|
||||
|
|
|
@ -340,7 +340,7 @@ void bundle_write(struct SRBRoot *bundle, const char *outputDir, const char *out
|
|||
}
|
||||
|
||||
mem = udata_create(outputDir, "res", dataName, &dataInfo, (gIncludeCopyright==TRUE)? U_COPYRIGHT_STRING:NULL, status);
|
||||
if(U_FAILURE(status)){
|
||||
if(U_FAILURE(*status)){
|
||||
return;
|
||||
}
|
||||
pad = calcPadding(bundle->fKeyPoint);
|
||||
|
|
Loading…
Add table
Reference in a new issue