diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-01-19 15:20:22 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-01-19 15:22:23 -0600 |
commit | fa222d810a865c1a8eee4a8c45db01c2fe422d88 (patch) | |
tree | 2317168875cce66c65b96ef365f6e9e31fba4145 /src | |
parent | 58f223da5f6b67bd779a4b7384ea288d7f0c9821 (diff) | |
download | ofono-fa222d810a865c1a8eee4a8c45db01c2fe422d88.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/voicecall.c | 5 |
1 files changed, 1 insertions, 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); |