[at-spi2-core/gnome-3-24] atspi_table_cell_get_position: don't crash on error
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/gnome-3-24] atspi_table_cell_get_position: don't crash on error
- Date: Mon, 27 Mar 2017 17:55:53 +0000 (UTC)
commit d159300dd8f1e9f3da3951469e39633779a97ecb
Author: Mike Gorse <mgorse suse com>
Date: Mon Mar 27 12:57:35 2017 -0500
atspi_table_cell_get_position: don't crash on error
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 c18e6dc..1df1fa9 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]