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
This commit is contained in:
Denis Kenzior 2011-01-19 15:20:22 -06:00
parent 58f223da5f
commit fa222d810a
1 changed files with 1 additions and 4 deletions

View File

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