From ed1d8a6fabd05a435390165ff18052fb959eb41c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 27 Oct 2009 12:47:42 -0500 Subject: [PATCH] Fix: Skip empty emergency numbers --- src/voicecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/voicecall.c b/src/voicecall.c index a50bb66..51d75dd 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; -- 2.7.4