mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-4707 There is no need to set s-fChars to 0 when it's already known to be 0 in the if statement.
X-SVN-Rev: 19516
This commit is contained in:
parent
ce8b1ede60
commit
735bfbfbc0
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1998-2004, International Business Machines
|
||||
* Copyright (C) 1998-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -206,7 +206,6 @@ ustr_resize(struct UString *s,
|
|||
s->fChars = (UChar*) uprv_realloc(s->fChars, sizeof(UChar) * (len + 1));
|
||||
if(s->fChars == 0) {
|
||||
*status = U_MEMORY_ALLOCATION_ERROR;
|
||||
s->fChars = 0;
|
||||
s->fLength = s->fCapacity = 0;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue