diff options
author | Mike Gorse <mgorse@suse.com> | 2017-03-27 12:57:35 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2017-03-27 12:59:09 -0500 |
commit | eba079f3e72e61e6b55d81727ab50c85d505d296 (patch) | |
tree | 44ba8f5cca6ea59549193a2bd564d0475bbf8379 /atspi/atspi-table-cell.c | |
parent | 334b46636dbe0915479e1ceae4a340c8b307a593 (diff) | |
download | at-spi2-core-eba079f3e72e61e6b55d81727ab50c85d505d296.tar.gz |
atspi_table_cell_get_position: don't crash on error
Diffstat (limited to 'atspi/atspi-table-cell.c')
-rw-r--r-- | atspi/atspi-table-cell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/atspi/atspi-table-cell.c b/atspi/atspi-table-cell.c index c18e6dc4..1df1fa90 100644 --- a/atspi/atspi-table-cell.c +++ b/atspi/atspi-table-cell.c @@ -163,9 +163,12 @@ atspi_table_cell_get_position (AtspiTableCell *obj, g_return_val_if_fail (obj != NULL, -1); reply = _atspi_dbus_call_partial (obj, "org.freedesktop.DBus.Properties", - "Get", NULL, "ss", + "Get", error, "ss", atspi_interface_table_cell, "Position"); + if (!reply) + return -1; + dbus_message_iter_init (reply, &iter); /* TODO: Return error here */ |