*/
for (index = 0; index < count; index++) {
cp_name_list_temp = g_slist_nth(cp_name_list, index);
- if(cp_name_list_temp == NULL)
+ if (cp_name_list_temp == NULL)
continue;
list[index] = g_strdup(cp_name_list_temp->data);
dbg("list[%d]: %s", index, list[index]);
/*
* Export interface onto Connection (conn) with 'path' (MY_DBUS_PATH)
*/
- g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(ctx->mgr),
- conn, MY_DBUS_PATH, NULL);
+ if (!g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(ctx->mgr),
+ conn, MY_DBUS_PATH, NULL)) {
+ err("Export MY_DBUS_PATH for telephony failed ");
+ }
/*
* Exports all objects managed by 'manager' on Connection (conn)