mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4869 Don't use a FILE after it's been closed.
X-SVN-Rev: 20074
This commit is contained in:
parent
0627bad784
commit
ea1db2db8a
1 changed files with 1 additions and 1 deletions
|
@ -1102,12 +1102,12 @@ Package::extractItem(const char *filesPath, const char *outName, int32_t index,
|
|||
exit(U_FILE_ACCESS_ERROR);
|
||||
}
|
||||
fileLength=(int32_t)fwrite(pItem->data, 1, pItem->length, file);
|
||||
fclose(file);
|
||||
|
||||
if(ferror(file) || fileLength!=pItem->length) {
|
||||
fprintf(stderr, "icupkg: unable to write complete file \"%s\"\n", filename);
|
||||
exit(U_FILE_ACCESS_ERROR);
|
||||
}
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue