From baa778020044a1b4ab152f201eb160d7614a842f Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 18 Mar 2021 13:56:45 +0900 Subject: [PATCH] Fix aul_svc_set_instance_id() function This patch changes the behavior of the function to delete the previous data. If the instance_id is nullptr, the function deletes the previous data from the bundle object. Change-Id: I0d40d980d8b6e9025dd65f3dc0eb40345d4fcbb2 Signed-off-by: Hwankyu Jhun --- src/aul_svc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aul_svc.cc b/src/aul_svc.cc index 0ad74b1..c386289 100644 --- a/src/aul_svc.cc +++ b/src/aul_svc.cc @@ -698,7 +698,7 @@ extern "C" API const char *aul_svc_get_instance_id(bundle* b) { } extern "C" API int aul_svc_set_instance_id(bundle* b, const char* instance_id) { - if (b == nullptr || instance_id == nullptr) { + if (b == nullptr) { _E("Invalid parameter"); return AUL_SVC_RET_EINVAL; } -- 2.7.4