at_spi2_tool: initialize data
[platform/upstream/at-spi2-core.git] / test / at_spi2_tool.c
index af7eb97..594a7c8 100644 (file)
@@ -297,7 +297,7 @@ static AtspiAccessible *_get_object_in_relation(AtspiAccessible *source, AtspiRe
        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);