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:
0aeb5f3
)
Fix error reporting in phonebook driver
author
Aki Niemi
<aki.niemi@nokia.com>
Tue, 15 Sep 2009 08:17:39 +0000
(11:17 +0300)
committer
Aki Niemi
<aki.niemi@nokia.com>
Tue, 15 Sep 2009 08:17:39 +0000
(11:17 +0300)
drivers/isimodem/phonebook.c
patch
|
blob
|
history
diff --git
a/drivers/isimodem/phonebook.c
b/drivers/isimodem/phonebook.c
index
c95140e
..
922c35b
100644
(file)
--- a/
drivers/isimodem/phonebook.c
+++ b/
drivers/isimodem/phonebook.c
@@
-195,11
+195,14
@@
static int decode_read_response(const unsigned char *msg, size_t len,
g_isi_sb_iter_next(&iter);
}
- if (status
=
= SIM_SERV_OK) {
- ofono_phonebook_entry(pb, -1, number, -1, name, -1, NULL,
-
anr, -1, sne, email, NULL, NULL)
;
+ if (status
!
= SIM_SERV_OK) {
+ DBG("PB read returned status: 0x%02X", status);
+
goto error
;
}
+ ofono_phonebook_entry(pb, -1, number, -1, name, -1, NULL,
+ anr, -1, sne, email, NULL, NULL);
+
error:
g_free(name);
g_free(number);