[E-devel] [PATCH] Fix crash on ebluez

By: "Gustavo F. Padovan" <padovan@profusion.mobi>



SVN revision: 47372
This commit is contained in:
Gustavo Sverzut Barbieri 2010-03-22 17:22:47 +00:00
parent 44d543036b
commit b737fdc095
1 changed files with 6 additions and 0 deletions

View File

@ -1123,6 +1123,12 @@ _default_adapter_callback(void *data, DBusMessage *msg, DBusError *err __UNUSED_
E_Bluez_Instance *inst;
const char *path;
if (err && dbus_error_is_set(err))
{
dbus_error_free(err);
return;
}
if (dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID) == FALSE)
return;