summaryrefslogtreecommitdiff
path: root/deps/icu-small/source/i18n/ucol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/icu-small/source/i18n/ucol.cpp')
-rw-r--r--deps/icu-small/source/i18n/ucol.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/icu-small/source/i18n/ucol.cpp b/deps/icu-small/source/i18n/ucol.cpp
index 34a394682f..7d3392da22 100644
--- a/deps/icu-small/source/i18n/ucol.cpp
+++ b/deps/icu-small/source/i18n/ucol.cpp
@@ -95,6 +95,7 @@ ucol_safeClone(const UCollator *coll, void * /*stackBuffer*/, int32_t * pBufferS
Collator *newColl = Collator::fromUCollator(coll)->clone();
if (newColl == NULL) {
*status = U_MEMORY_ALLOCATION_ERROR;
+ return nullptr;
} else {
*status = U_SAFECLONE_ALLOCATED_WARNING;
}