summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2013-01-15 10:07:12 -0600
committerMike Gorse <mgorse@suse.com>2013-01-15 10:07:12 -0600
commitd20f38c58e79d41c1b09aad61b13901ad4348387 (patch)
tree1c351ad1092005924419df567bbe815be9d6254a
parentb5deb7538bb00757ef264f95969ff8a426898810 (diff)
downloadat-spi2-core-d20f38c58e79d41c1b09aad61b13901ad4348387.tar.gz
Check that message is non-NULL before calling libdbus
_atspi_dbus_call_partial now checks for an error message, but it should first check that the message is not NULL, or libdbus will abort.
-rw-r--r--atspi/atspi-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index e4ef09f6..471d6a19 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -1174,7 +1174,7 @@ out:
dbus_error_free (&err);
}
- if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
+ if (reply && dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
{
const char *err_str = NULL;
dbus_message_get_args (reply, NULL, DBUS_TYPE_STRING, &err_str, DBUS_TYPE_INVALID);