projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334b466
)
atspi_table_cell_get_position: don't crash on error
author
Mike Gorse
<mgorse@suse.com>
Mon, 27 Mar 2017 17:57:35 +0000
(12:57 -0500)
committer
Mike Gorse
<mgorse@suse.com>
Mon, 27 Mar 2017 17:59:09 +0000
(12:59 -0500)
atspi/atspi-table-cell.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-table-cell.c
b/atspi/atspi-table-cell.c
index
c18e6dc
..
1df1fa9
100644
(file)
--- 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 */