summaryrefslogtreecommitdiff
path: root/atspi/atspi-collection.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2012-07-18 12:29:24 -0500
committerMike Gorse <mgorse@suse.com>2012-07-18 12:29:24 -0500
commitb2873b58e6d2702d3db2477ac2f151098e0cde70 (patch)
tree85e34caa118616fda46ece6d0a387ec397545cd5 /atspi/atspi-collection.c
parent10daa8eed180da3c11be0bac0db78d568a090421 (diff)
downloadat-spi2-core-b2873b58e6d2702d3db2477ac2f151098e0cde70.tar.gz
Code clean-ups
There isn't really any point in checking for GLib functions returning NULL due to lack of memory, since they just abort instead.
Diffstat (limited to 'atspi/atspi-collection.c')
-rw-r--r--atspi/atspi-collection.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/atspi/atspi-collection.c b/atspi/atspi-collection.c
index b401d109..138d658f 100644
--- a/atspi/atspi-collection.c
+++ b/atspi/atspi-collection.c
@@ -91,11 +91,8 @@ return_accessibles (DBusMessage *message)
while (dbus_message_iter_get_arg_type (&iter_array) != DBUS_TYPE_INVALID)
{
AtspiAccessible *accessible;
- GArray *new_array;
accessible = _atspi_dbus_return_accessible_from_iter (&iter_array);
- new_array = g_array_append_val (ret, accessible);
- if (new_array)
- ret = new_array;
+ ret = g_array_append_val (ret, accessible);
/* Iter was moved already, so no need to call dbus_message_iter_next */
}
dbus_message_unref (message);