ICU-2356 remove redundant argument check

X-SVN-Rev: 12179
This commit is contained in:
Markus Scherer 2003-05-29 23:01:01 +00:00
parent 2af5236067
commit e4c5b5d5ae

View file

@ -265,7 +265,7 @@ UnicodeString::UnicodeString(UChar *buff,
fCapacity = US_STACKBUF_SIZE;
fArray = fStackBuffer;
fFlags = kShortString;
} else if(buff == 0 || buffLength < -1 || buffLength > buffCapacity) {
} else if(buffLength < -1 || buffLength > buffCapacity) {
setToBogus();
} else if(buffLength == -1) {
// fLength = u_strlen(buff); but do not look beyond buffCapacity