diff options
author | Mike Gorse <mgorse@suse.com> | 2012-07-18 12:29:24 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2012-07-18 12:29:24 -0500 |
commit | b2873b58e6d2702d3db2477ac2f151098e0cde70 (patch) | |
tree | 85e34caa118616fda46ece6d0a387ec397545cd5 /atspi/atspi-stateset.c | |
parent | 10daa8eed180da3c11be0bac0db78d568a090421 (diff) | |
download | at-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-stateset.c')
-rw-r--r-- | atspi/atspi-stateset.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/atspi/atspi-stateset.c b/atspi/atspi-stateset.c index 54622ec9..b5619e89 100644 --- a/atspi/atspi-stateset.c +++ b/atspi/atspi-stateset.c @@ -299,11 +299,7 @@ atspi_state_set_get_states (AtspiStateSet *set) for (i = 0; i < 64; i++) { if (set->states & val) - { - GArray *new_array = g_array_append_val (ret, i); - if (new_array) - ret = new_array; - } + ret = g_array_append_val (ret, i); val <<= 1; } return ret; |