aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-01-26 17:04:27 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-02-04 15:47:01 +0100
commit2d2621a1c807fe9f08d7f4bcfdb2bdc30a2a0f87 (patch)
treedd055ed834a4e486b2aaa8af47c110f6727b2416
parentc9c0f8989ec6cdd55a8e584e8c93041ae2126282 (diff)
utils-dbus: fix un initialised status
Change-Id: I6384b88ee60530d44c01f98022b43976eb212bfc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/utils-jbus.c4
1 files changed, 3 insertions, 1 deletions
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;