From fa222d810a865c1a8eee4a8c45db01c2fe422d88 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 19 Jan 2011 15:20:22 -0600 Subject: [PATCH] voicecall: Handle empty EFecc properly When EFecc is empty we should still set the calling codes to the default_en_list, not keep the default_en_list + default_en_list_no_sim --- src/voicecall.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/voicecall.c b/src/voicecall.c index 77fa75af..f3f6a9b4 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -2112,9 +2112,6 @@ static void ecc_g2_read_cb(int ok, int total_length, int record, g_strdup(en)); } - if (vc->new_en_list == NULL) - return; - set_new_ecc(vc); } @@ -2147,7 +2144,7 @@ static void ecc_g3_read_cb(int ok, int total_length, int record, return; check: - if (vc->new_en_list == NULL) + if (!ok && vc->new_en_list == NULL) return; set_new_ecc(vc);