diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-10-27 12:47:42 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-27 12:47:42 -0500 |
commit | ed1d8a6fabd05a435390165ff18052fb959eb41c (patch) | |
tree | 5e1a74db7fb7c904ec0e7c3e732cbcc0924e2be2 | |
parent | 25ef3f8b18a1f4f306b396c13e6a0add43628a7d (diff) | |
download | ofono-ed1d8a6fabd05a435390165ff18052fb959eb41c.tar.bz2 |
Fix: Skip empty emergency numbers
-rw-r--r-- | src/voicecall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index a50bb661..51d75dda 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -1749,7 +1749,9 @@ static void ecc_read_cb(int ok, int total_length, int record, const unsigned cha total = total_length / record_length; extract_bcd_number(data, 3, en); - vc->new_en_list = g_slist_prepend(vc->new_en_list, g_strdup(en)); + if (en[0] != '\0') + vc->new_en_list = g_slist_prepend(vc->new_en_list, + g_strdup(en)); if (record != total) return; |