From 3e281299eda51de78098252fce08b630df9d2050 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 25 Mar 2005 03:13:10 +0000 Subject: [PATCH] check for null comms before using --- linux/gtkmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/gtkmain.c b/linux/gtkmain.c index 19cc4a8ae..d965c964f 100644 --- a/linux/gtkmain.c +++ b/linux/gtkmain.c @@ -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 );