From ce68c39d0b336d8923ffa55f608c723100f08549 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 27 May 2009 14:52:35 -0500 Subject: [PATCH] Make Operator attribute work when SPN is empty --- src/network.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index 91d3681b..464f30c6 100644 --- a/src/network.c +++ b/src/network.c @@ -343,8 +343,10 @@ static char *get_operator_display_name(struct ofono_modem *modem) return name; } - if (!netreg->spname) + if (!netreg->spname || strlen(netreg->spname) == 0) { g_strlcpy(name, netreg->current_operator->name, len); + return name; + } plmn = netreg->current_operator->name;