mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +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 ) {
|
if ( nWorkerThreads == 0 ) {
|
||||||
(void)cfg->GetValueFor( "NTHREADS", &nWorkerThreads );
|
(void)cfg->GetValueFor( "NTHREADS", &nWorkerThreads );
|
||||||
}
|
}
|
||||||
if ( g_maxsocks == -1 ) {
|
|
||||||
(void)cfg->GetValueFor( "MAXSOCKS", &g_maxsocks );
|
if ( g_maxsocks == -1 && !cfg->GetValueFor( "MAXSOCKS", &g_maxsocks ) ) {
|
||||||
} else {
|
|
||||||
g_maxsocks = 100;
|
g_maxsocks = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
char serverNameBuf[128];
|
char serverNameBuf[128];
|
||||||
if ( serverName == NULL ) {
|
if ( serverName == NULL ) {
|
||||||
if ( cfg->GetValueFor( "SERVERNAME", serverNameBuf,
|
if ( cfg->GetValueFor( "SERVERNAME", serverNameBuf,
|
||||||
|
|
Loading…
Add table
Reference in a new issue