diff options
-rw-r--r-- | src/network.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c index 897e1fef..9becefb5 100644 --- a/src/network.c +++ b/src/network.c @@ -689,6 +689,9 @@ static GSList *compress_operator_list(const struct ofono_network_operator *list, for (i = 0; i < total; i++) { o = NULL; + if (list[i].mcc[0] == '\0' || list[i].mnc[0] == '\0') + continue; + if (oplist) o = g_slist_find_custom(oplist, &list[i], network_operator_compare); |