projects
/
platform
/
core
/
telephony
/
phonenumber-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8130909
)
Return type check for phnc_dbus_connect()
75/258575/1
author
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Thu, 20 May 2021 09:56:06 +0000
(15:26 +0530)
committer
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Thu, 20 May 2021 09:56:06 +0000
(15:26 +0530)
Change-Id: I0e618c3a7c56024dbd04096cc0d4d4e500f2dc03
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
client/phnc-dbus.c
patch
|
blob
|
history
diff --git
a/client/phnc-dbus.c
b/client/phnc-dbus.c
index fd2ae4e1d276f6347bc07b4580b127962465d389..1ea582959d59bc313f9b416363368d72917ca1da 100644
(file)
--- a/
client/phnc-dbus.c
+++ b/
client/phnc-dbus.c
@@
-119,9
+119,10
@@
int phnc_dbus_get_formatted_number(const char *number, phone_number_region_e reg
char *out_num = NULL;
bool not_connected = phnc_dbus_object ? false : true;
- if (not_connected)
- phnc_dbus_connect();
-
+ if (not_connected){
+ if (phnc_dbus_connect() == PHONE_NUMBER_ERROR_SYSTEM)
+ ERR("phnc_dbus_disconnect() Failed");
+ }
phn_dbus_call_get_number_sync(phnc_dbus_object, number, region, &out_num,
&ret, NULL, &error);