Obsolete golang-120
[oi-userland.git] / components / library / icu-72 / patches / 135-source-common-unistr.cpp.patch
blobdf32f2451211d87b832623dc249abe0ebfbe5d59
2 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4 getBuffer handling is tracked upstream as
5 https://unicode-org.atlassian.net/browse/ICU-12378
7 --- icu/source/common/unistr.cpp.orig
8 +++ icu/source/common/unistr.cpp
9 @@ -627,6 +627,9 @@
10 return result;
12 const UChar *array = getBuffer();
13 + if ( array == NULL ) {
14 + return result;
15 + }
16 int32_t len = length();
17 int32_t prev = 0;
18 for (int32_t i=0;;) {