From: Hwankyu Jhun Date: Thu, 2 Feb 2023 01:24:10 +0000 (+0000) Subject: Fix static analysis issue X-Git-Tag: accepted/tizen/unified/20230206.093821~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=597f1311dbc57f4c13c926c8febe721024ec7f5c;p=platform%2Fcore%2Fappfw%2Faul-1.git Fix static analysis issue Type: - Wrapper object use after free Change-Id: I59d1606ec71b4329df15ca41f65d3fe68f4d7522 Signed-off-by: Hwankyu Jhun --- diff --git a/src/aul_svc.cc b/src/aul_svc.cc index 028a5a7..72b9673 100644 --- a/src/aul_svc.cc +++ b/src/aul_svc.cc @@ -501,7 +501,7 @@ extern "C" API int aul_svc_set_appid(bundle* b, const char* appid) { if (TIZEN_FEATURE_APPSVC_ALIAS) { std::string alias_id = ::GetAliasAppId(appid); if (!alias_id.empty()) - appid = alias_id.c_str(); + return ::SetBundle(b, AUL_SVC_K_PKG_NAME, alias_id.c_str()); } return ::SetBundle(b, AUL_SVC_K_PKG_NAME, appid);