Check error before call dbus_message_get_args to acquire arguments
authorMartin Xu <martin.xu@intel.com>
Tue, 27 Apr 2010 09:49:12 +0000 (17:49 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 May 2010 05:34:10 +0000 (07:34 +0200)
commitb4edf97ceebc5d6b2c792351180ffb7286f279b3
tree83f0eabc4d23d9994cb33d119bc64deab6ede06a
parent3ee48bb2abb77664f0a1fa808e9ae8ce0901b881
Check error before call dbus_message_get_args to acquire arguments

Function dbus_message_get_args just checks the signature which may
happens to be s(string), then it will just return TRUE, and the error
message is treated as return value.
So dbus_set_error_from_message is used to check the error, before
call dbus_message_get_args.
plugins/bluetooth.c