summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sim.c b/src/sim.c
index 300fc4c3..f6f99064 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -730,11 +730,10 @@ static void sim_get_image_cb(gboolean ok, const char *xpm, int xpm_len,
if (!ok)
reply = __ofono_error_failed(sim->pending);
- else {
- reply = dbus_message_new_method_return(sim->pending);
- dbus_message_append_args(reply, DBUS_TYPE_STRING, &xpm,
- DBUS_TYPE_INVALID);
- }
+ else
+ reply = g_dbus_create_reply(sim->pending,
+ DBUS_TYPE_STRING, &xpm,
+ DBUS_TYPE_INVALID);
__ofono_dbus_pending_reply(&sim->pending, reply);
}