mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
fix uninitialised variable
This commit is contained in:
parent
f29c24e362
commit
1e0023dc43
2 changed files with 6 additions and 2 deletions
|
@ -273,7 +273,7 @@ static Class GSAttrDictionaryClass = 0;
|
|||
@end
|
||||
|
||||
|
||||
gs_thread_key_t thread_last_error_key;
|
||||
static gs_thread_key_t thread_last_error_key;
|
||||
|
||||
static void GS_WINAPI
|
||||
exitedThread(void *lastErrorPtr)
|
||||
|
@ -379,7 +379,10 @@ static NSStringEncoding defaultEncoding;
|
|||
{
|
||||
defaultEncoding = [NSString defaultCStringEncoding];
|
||||
GSAttrDictionaryClass = [GSAttrDictionary class];
|
||||
GS_THREAD_KEY_INIT(thread_last_error_key, exitedThread);
|
||||
if (!GS_THREAD_KEY_INIT(thread_last_error_key, exitedThread))
|
||||
{
|
||||
NSLog(@"Problem initialising thread error key");
|
||||
}
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue