From 41aebf977cb30ab848a95674f39ed4513517837e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 3 Dec 2008 20:00:11 +0200 Subject: Fix HAL reply parsing --- audio/telephony-maemo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/telephony-maemo.c') diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c index 060ce3fa..e4ff5297 100644 --- a/audio/telephony-maemo.c +++ b/audio/telephony-maemo.c @@ -1532,7 +1532,7 @@ static void hal_find_device_reply(DBusPendingCall *call, void *user_data) type = dbus_message_iter_get_arg_type(&sub); - if (type != DBUS_TYPE_OBJECT_PATH) { + if (type != DBUS_TYPE_OBJECT_PATH && type != DBUS_TYPE_STRING) { error("No hal device with battery capability found"); goto done; } -- cgit