From: Hwankyu Jhun Date: Tue, 24 May 2022 00:51:52 +0000 (+0900) Subject: Fix the wrong implementation of aul_set_auto_restart() X-Git-Tag: accepted/tizen/unified/20220526.144258~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F275374%2F1;p=platform%2Fcore%2Fappfw%2Faul-1.git Fix the wrong implementation of aul_set_auto_restart() The encoded bundle raw data has to be set to the local variable. Change-Id: I0182a465d67ab7ce6abae4c334d0aa714f585ff7 Signed-off-by: Hwankyu Jhun --- diff --git a/src/pkginfo.c b/src/pkginfo.c index 8fb6c82..af57d43 100644 --- a/src/pkginfo.c +++ b/src/pkginfo.c @@ -634,7 +634,7 @@ API int aul_set_auto_restart(bundle *b) return AUL_R_EINVAL; } - bundle_add(b, AUL_K_RESTART_EXTRA, (const char *)raw); + bundle_add(kb, AUL_K_RESTART_EXTRA, (const char *)raw); bundle_free_encoded_rawdata(&raw); } ret = aul_sock_send_bundle(AUL_UTIL_PID, getuid(),