if (relations == NULL)
return NULL;
- AtspiAccessible *ret;
+ AtspiAccessible *ret = NULL;
for (int i = 0; i < relations->len; ++i) {
AtspiRelation *relation = g_array_index(relations, AtspiRelation *, i);
AtspiRelationType type = atspi_relation_get_relation_type(relation);