From: Denis Kenzior Date: Tue, 27 Oct 2009 19:41:43 +0000 (-0500) Subject: Fix: Don't emit spurious Base Station Name signal X-Git-Tag: 0.9~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed813455c2cd9e942e63b1dd6a1b64fdf6c048a8;p=platform%2Fupstream%2Fofono.git Fix: Don't emit spurious Base Station Name signal --- diff --git a/src/network.c b/src/network.c index efa0bc7..43ee573 100644 --- a/src/network.c +++ b/src/network.c @@ -839,6 +839,10 @@ void __ofono_netreg_set_base_station_name(struct ofono_netreg *netreg, const char *path = __ofono_atom_get_path(netreg->atom); const char *base_station = name ? name : ""; + /* Cell ID changed, but we don't have a cell name, nothing to do */ + if (netreg->base_station == NULL && name == NULL) + return; + if (netreg->base_station) g_free(netreg->base_station);