Fix aul_svc_set_instance_id() function 14/255414/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 18 Mar 2021 04:56:45 +0000 (13:56 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 18 Mar 2021 05:14:24 +0000 (14:14 +0900)
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 <h.jhun@samsung.com>
src/aul_svc.cc

index 0ad74b1..c386289 100644 (file)
@@ -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;
   }