ICU-2135 fix typo more error checking

X-SVN-Rev: 10481
This commit is contained in:
Ram Viswanadha 2002-12-04 23:31:10 +00:00
parent a238652e4a
commit f69999fbfc
3 changed files with 4 additions and 3 deletions

View file

@ -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){

View file

@ -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)
{

View file

@ -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);