From 3085427fe057bd89000f828f8bb36c3553508fe8 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Mon, 13 Feb 2017 18:39:13 +0900 Subject: [PATCH] at_spi2_tool: initialize data Uninitialized data is read from local variable 'ret' Change-Id: Ib03c2dae19b5f4f87a2a090bc6c4595939e2655d --- test/at_spi2_tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/at_spi2_tool.c b/test/at_spi2_tool.c index af7eb97..594a7c8 100644 --- a/test/at_spi2_tool.c +++ b/test/at_spi2_tool.c @@ -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); -- 2.7.4