mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix uninitialised variable
This commit is contained in:
parent
f29c24e362
commit
1e0023dc43
2 changed files with 6 additions and 2 deletions
|
@ -178,6 +178,7 @@ static int tuneSndBuf = 0;
|
|||
* that multiple processes can serve the same port simultaneously.
|
||||
* We don't want that broken behavior!
|
||||
*/
|
||||
value = 1;
|
||||
if (setsockopt(desc, SOL_SOCKET, SO_REUSEADDR, (char*)&value, sizeof(value))
|
||||
< 0)
|
||||
{
|
||||
|
|
|
@ -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…
Reference in a new issue