mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
fix crash on startup (as done already on gtk branch)
This commit is contained in:
parent
3313c776ab
commit
8cb0a8a7a7
1 changed files with 3 additions and 3 deletions
|
@ -1240,11 +1240,11 @@ main( int argc, char** argv )
|
|||
if ( nWorkerThreads == 0 ) {
|
||||
(void)cfg->GetValueFor( "NTHREADS", &nWorkerThreads );
|
||||
}
|
||||
if ( g_maxsocks == -1 ) {
|
||||
(void)cfg->GetValueFor( "MAXSOCKS", &g_maxsocks );
|
||||
} else {
|
||||
|
||||
if ( g_maxsocks == -1 && !cfg->GetValueFor( "MAXSOCKS", &g_maxsocks ) ) {
|
||||
g_maxsocks = 100;
|
||||
}
|
||||
|
||||
char serverNameBuf[128];
|
||||
if ( serverName == NULL ) {
|
||||
if ( cfg->GetValueFor( "SERVERNAME", serverNameBuf,
|
||||
|
|
Loading…
Add table
Reference in a new issue