From 4754c538c8b987b54ebf363f97123fc43d909c76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFc=20Collignon?= Date: Tue, 1 Aug 2017 09:18:10 +0200 Subject: [PATCH] fixed a crash when logout. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I6073c89e9e507d79f6bf09254376465959d34782 Signed-off-by: Loïc Collignon --- ll-auth-binding/src/ll-auth-binding.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ll-auth-binding/src/ll-auth-binding.c b/ll-auth-binding/src/ll-auth-binding.c index 37c47e0..dffb866 100644 --- a/ll-auth-binding/src/ll-auth-binding.c +++ b/ll-auth-binding/src/ll-auth-binding.c @@ -232,8 +232,7 @@ static void logout(const char* device) } else { - json_object_object_add(result, "message", json_object_new_string(current_device)); - json_object_object_add(result, "user", json_object_new_string("The unplugged device wasn't the user key!")); + json_object_object_add(result, "message", json_object_new_string("The unplugged device wasn't the user key!")); AFB_INFO("The unplugged device wasn't the user key!"); afb_event_broadcast(evt_failed, result); } -- 2.16.6