From db93af919d7e6c84228af161faa17ddbd2467676 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 17 Aug 2001 02:58:00 +0000 Subject: [PATCH] ICU-900 Fixed some compiler warnings X-SVN-Rev: 5507 --- icu4c/source/i18n/numfmt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icu4c/source/i18n/numfmt.cpp b/icu4c/source/i18n/numfmt.cpp index 39fd5bc2cd0..cb130e7c677 100644 --- a/icu4c/source/i18n/numfmt.cpp +++ b/icu4c/source/i18n/numfmt.cpp @@ -475,6 +475,9 @@ NumberFormat::createInstance(const Locale& desiredLocale, if (U_SUCCESS(status)) { f = new DecimalFormat(pattern, symbolsToAdopt, status); } + else { + return NULL; + } } else { // If the requested style doesn't exist, use a last-resort style.