From: Loïc Collignon Date: Tue, 1 Aug 2017 07:18:10 +0000 (+0200) Subject: fixed a crash when logout. X-Git-Tag: 4.99.5~37 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=4754c538c8b987b54ebf363f97123fc43d909c76;p=apps%2Fagl-service-data-persistence.git fixed a crash when logout. Change-Id: I6073c89e9e507d79f6bf09254376465959d34782 Signed-off-by: Loïc Collignon --- 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); }