From 2d2621a1c807fe9f08d7f4bcfdb2bdc30a2a0f87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Tue, 26 Jan 2016 17:04:27 +0100 Subject: [PATCH] utils-dbus: fix un initialised status MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I6384b88ee60530d44c01f98022b43976eb212bfc Signed-off-by: José Bollo --- src/utils-jbus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils-jbus.c b/src/utils-jbus.c index e379921..1f85a4c 100644 --- a/src/utils-jbus.c +++ b/src/utils-jbus.c @@ -268,7 +268,9 @@ static DBusHandlerResult incoming_resp(DBusConnection *connection, DBusMessage * *prv = jrw->next; /* retrieve the string value */ - if (!dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &str, DBUS_TYPE_INVALID)) { + if (dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &str, DBUS_TYPE_INVALID)) + status = 0; + else { status = -1; str = NULL; reply = NULL; -- 2.16.6