mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-7332 write empty binary with offset 0 only in formatVersion 2 or higher
X-SVN-Rev: 27209
This commit is contained in:
parent
b0c56f7ed4
commit
fdc609672d
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2000-2009, International Business Machines
|
||||
* Copyright (C) 2000-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -1046,8 +1046,10 @@ struct SResource *bin_open(struct SRBRoot *bundle, const char *tag, uint32_t len
|
|||
}
|
||||
else {
|
||||
res->u.fBinaryValue.fData = NULL;
|
||||
res->fRes = URES_MAKE_EMPTY_RESOURCE(URES_BINARY);
|
||||
res->fWritten = TRUE;
|
||||
if (gFormatVersion > 1) {
|
||||
res->fRes = URES_MAKE_EMPTY_RESOURCE(URES_BINARY);
|
||||
res->fWritten = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue