mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-10439 fix sprintf(%s,NULL)
X-SVN-Rev: 34469
This commit is contained in:
parent
22f108c028
commit
380a5608aa
1 changed files with 3 additions and 0 deletions
|
@ -1790,6 +1790,9 @@ UBool IntlTest::assertFalse(const char* message, UBool condition, UBool quiet) {
|
|||
}
|
||||
|
||||
UBool IntlTest::assertSuccess(const char* message, UErrorCode ec, UBool possibleDataError, const char *file, int line) {
|
||||
if( file==NULL ) {
|
||||
file = ""; // prevent failure if no file given
|
||||
}
|
||||
if (U_FAILURE(ec)) {
|
||||
if (possibleDataError) {
|
||||
dataerrln("FAIL: %s:%d: %s (%s)", file, line, message, u_errorName(ec));
|
||||
|
|
Loading…
Add table
Reference in a new issue