mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
a few checks for failed mem allocation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36882 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c61a5faaff
commit
0a81a2f8dd
2 changed files with 24 additions and 9 deletions
|
@ -5223,13 +5223,13 @@ static NSFileManager *fm = nil;
|
|||
if (string == nil)
|
||||
[NSException raise: NSInvalidArgumentException format: @"compare with nil"];
|
||||
|
||||
#if GS_USE_ICU == 1
|
||||
if (nil != locale
|
||||
&& ![locale isKindOfClass: [NSLocale class]])
|
||||
&& ![locale isKindOfClass: [NSLocale class]])
|
||||
{
|
||||
locale = [NSLocale currentLocale];
|
||||
}
|
||||
|
||||
#if GS_USE_ICU == 1
|
||||
{
|
||||
UCollator *coll = GSICUCollatorOpen(mask, locale);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue