From: Ji-hoon Lee Date: Thu, 24 Oct 2019 13:18:58 +0000 (+0900) Subject: Prevent sending preprocessing appid as NULL X-Git-Tag: submit/tizen/20191024.132710~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f68c5e3f0416f7ced134cf1fb992b81466ca1c7;p=platform%2Fcore%2Fuifw%2Fmulti-assistant-service.git Prevent sending preprocessing appid as NULL Change-Id: Id3744e4a00bfb4f1a4e66996b8952027a285f74c --- diff --git a/src/multi_assistant_service.c b/src/multi_assistant_service.c index 0baf44e..278c60c 100644 --- a/src/multi_assistant_service.c +++ b/src/multi_assistant_service.c @@ -305,9 +305,11 @@ int mas_client_send_preprocessing_information(int pid) char* vconf_str = vconf_get_str(WAKEUP_SETTINGS_KEY_PREPROCESSING_ASSISTANT_APPID); MAS_LOGD("preprocessing_assistant_appid : %s", vconf_str); - ret = masc_dbus_send_preprocessing_information(pid, vconf_str); - free(vconf_str); - vconf_str = NULL; + if (vconf_str) { + ret = masc_dbus_send_preprocessing_information(pid, vconf_str); + free(vconf_str); + vconf_str = NULL; + } return ret; }