Fix: Don't emit spurious Base Station Name signal

This commit is contained in:
Denis Kenzior 2009-10-27 14:41:43 -05:00
parent ed1d8a6fab
commit ed813455c2
1 changed files with 4 additions and 0 deletions

View File

@ -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);