From: José Bollo Date: Tue, 26 Jan 2016 16:04:27 +0000 (+0100) Subject: utils-dbus: fix un initialised status X-Git-Tag: 2.0.2~86 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-main.git;a=commitdiff_plain;h=2d2621a1c807fe9f08d7f4bcfdb2bdc30a2a0f87 utils-dbus: fix un initialised status Change-Id: I6384b88ee60530d44c01f98022b43976eb212bfc Signed-off-by: José Bollo --- 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;