From: Andreas Eversberg Date: Tue, 28 Dec 2010 15:24:38 +0000 (+0100) Subject: Fixed null-pointer bug when GSM support is disabled X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=51c27d3a306987244398b65e2f1d465a98386f2a;hp=5705b3e17b395a6ad08a689cfe212bca20427bd5 Fixed null-pointer bug when GSM support is disabled Conflicts: interface.c --- diff --git a/interface.c b/interface.c index 448affc..e7ab171 100644 --- a/interface.c +++ b/interface.c @@ -327,7 +327,9 @@ static int inter_portname(struct interface *interface, char *filename, int line, /* check for port already assigned, but not for shared gsm interface */ searchif = interface_newlist; - if (!strcmp(value, options.loopback_lcr)) +#if defined WITH_GSM_BS || defined WITH_GSM_MS + if (options.gsm && !strcmp(value, gsm->conf.interface_lcr)) +#endif { while(searchif) { ifport = searchif->ifport;