mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
check for null comms before using
This commit is contained in:
parent
c9f60e758c
commit
b3432d4dfa
1 changed files with 3 additions and 1 deletions
|
@ -273,7 +273,9 @@ createOrLoadObjects( GtkAppGlobals* globals, GtkWidget *widget )
|
|||
sizeof(addr.u.ip_relay.cookie) - 1 );
|
||||
|
||||
/* This may trigger network activity */
|
||||
comms_setAddr( globals->cGlobals.game.comms, &addr );
|
||||
if ( !!globals->cGlobals.game.comms ) {
|
||||
comms_setAddr( globals->cGlobals.game.comms, &addr );
|
||||
}
|
||||
|
||||
model_setDictionary( globals->cGlobals.game.model, params->dict );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue