From d87a300c737943e8f2469ec7a6cfb386f7638393 Mon Sep 17 00:00:00 2001 From: SukhyungKang Date: Tue, 23 Nov 2021 10:19:27 +0900 Subject: [PATCH] Change not to store pkg id for web app Change-Id: I025e222d20c05b53d82ae432df68c2bddd58e7f7 Signed-off-by: SukhyungKang --- notification/src/notification.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notification/src/notification.c b/notification/src/notification.c index 6f4b526..04b0063 100644 --- a/notification/src/notification.c +++ b/notification/src/notification.c @@ -1516,17 +1516,17 @@ static notification_h _notification_create(notification_type_e type) } else { if (_pkg_id == NULL) { err = aul_app_get_pkgid_bypid(getpid(), pkg_id, sizeof(pkg_id)); - if (err != AUL_R_OK) + if (err != AUL_R_OK) { noti->pkg_id = strdup(noti->caller_app_id); - else + } else { noti->pkg_id = strdup(pkg_id); + _pkg_id = strdup(pkg_id); + } if (noti->pkg_id == NULL) { err = -1; goto out; } - - _pkg_id = strdup(noti->pkg_id); } else { noti->pkg_id = strdup(_pkg_id); } -- 2.7.4