diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-01-26 21:40:16 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-01-26 21:40:16 +0100 |
commit | f9a4e26ee162d769a6c85ee49c5571c8e331ac9b (patch) | |
tree | 6553698fc7a8a1e9d8e2bc08dc98ff6ee6e192a7 /plugins/afm-main-plugin/utils-jbus.c | |
parent | 14b0b56a3a63df1415b13bf410f8fee2b6661d18 (diff) |
afm-plugin: update utils-jbus version
Change-Id: Iafc6b6776bf10722a6217678c5a6847cc3fb0bfb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/afm-main-plugin/utils-jbus.c')
-rw-r--r-- | plugins/afm-main-plugin/utils-jbus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/afm-main-plugin/utils-jbus.c b/plugins/afm-main-plugin/utils-jbus.c index e379921c..1f85a4cd 100644 --- a/plugins/afm-main-plugin/utils-jbus.c +++ b/plugins/afm-main-plugin/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; |