From dd88a65f4a3f29d9ebd0073ae90c26527198c757 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 11 Feb 2011 12:39:01 +0000 Subject: [PATCH] Fix nonsense use of libicu, spotted by the analyser, with a not-so-helpful warning (he status pointer passed in to icu functions MUST be initialised to 0, because the ICU functions test it as well as setting it so you can call a load of ICU functions with the same status flag and not wrap them all in tests). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32066 72102866-910b-0410-8b05-ffd578937521 --- Source/NSLocale.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSLocale.m b/Source/NSLocale.m index 237c2b254..fd3dcc40a 100644 --- a/Source/NSLocale.m +++ b/Source/NSLocale.m @@ -654,7 +654,7 @@ static NSRecursiveLock *classLock = nil; #if GS_USE_ICU == 1 int32_t length = 0; unichar buffer[ULOC_FULLNAME_CAPACITY]; - UErrorCode status; + UErrorCode status = 0; const char *keyword = NULL; const char *locale = [_localeId UTF8String];