diff options
Diffstat (limited to 'plugins/hal.c')
-rw-r--r-- | plugins/hal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/hal.c b/plugins/hal.c index e2189b49..3502926e 100644 --- a/plugins/hal.c +++ b/plugins/hal.c @@ -47,6 +47,12 @@ static void formfactor_reply(DBusPendingCall *call, void *user_data) reply = dbus_pending_call_steal_reply(call); + if (dbus_set_error_from_message(NULL, reply) == TRUE) { + error("Failed to access HAL"); + dbus_message_unref(reply); + return; + } + if (dbus_message_get_args(reply, NULL, DBUS_TYPE_STRING, &formfactor, DBUS_TYPE_INVALID) == FALSE) { error("Wrong formfactor arguments"); |