projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25ef3f8
)
Fix: Skip empty emergency numbers
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 27 Oct 2009 17:47:42 +0000
(12:47 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 27 Oct 2009 17:47:42 +0000
(12:47 -0500)
src/voicecall.c
patch
|
blob
|
history
diff --git
a/src/voicecall.c
b/src/voicecall.c
index
a50bb66
..
51d75dd
100644
(file)
--- 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;