summaryrefslogtreecommitdiffstats
path: root/audio/telephony-maemo.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-12-03 20:00:11 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-08 16:10:58 +0200
commit41aebf977cb30ab848a95674f39ed4513517837e (patch)
tree9e60fcb0badc37dfa7feb5f5677b391db844e315 /audio/telephony-maemo.c
parent6eb2e31bd10d94d966027d52b00840dcbbf967b3 (diff)
Fix HAL reply parsing
Diffstat (limited to 'audio/telephony-maemo.c')
-rw-r--r--audio/telephony-maemo.c2
1 files changed, 1 insertions, 1 deletions
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;
}