From: seolheui,kim Date: Wed, 7 Sep 2016 07:55:08 +0000 (+0900) Subject: Fix svace issues of dpm-syspopup X-Git-Tag: accepted/tizen/common/20160909.114752~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F87284%2F1;p=platform%2Fcore%2Fsecurity%2Fdevice-policy-manager.git Fix svace issues of dpm-syspopup Change-Id: I9d13cbc9b6d3519360b6877fd8a74952fa6e3449 Signed-off-by: seolheui,kim --- diff --git a/tools/syspopup/src/ui.c b/tools/syspopup/src/ui.c index 5b8e848..270b038 100644 --- a/tools/syspopup/src/ui.c +++ b/tools/syspopup/src/ui.c @@ -95,11 +95,10 @@ static void reply_password_enforce_event_handler(app_control_h ug, app_control_h return; } - free(result_string); - if (strcmp(result_string, "SETTING_PW_TYPE_ENTER_LOCK_TYPE") || strcmp(result_string, "SETTING_PW_TYPE_VERIFY_FP_ALT_PASSWORD")) { + free(result_string); app_control_get_extra_data(reply, "current", ¤t); if (current != NULL) { app_control_h app_control; @@ -243,8 +242,8 @@ void _create_syspopup(const char *id, char *style, const char *status, app_contr Evas_Smart_Cb ok_button_handler = NULL; popup_info_s *info = NULL; int ret = 0; - char header[PATH_MAX] = "\0"; - char body[PATH_MAX] = "\0"; + char header[PATH_MAX] = ""; + char body[PATH_MAX] = ""; if (!strcmp(id, "password-enforce-change")) ok_button_handler = password_enforce_event_handler; @@ -272,12 +271,12 @@ void _create_syspopup(const char *id, char *style, const char *status, app_contr eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, main_window); if (!strcmp(info->style, "default")) { - if (header != NULL) { + if (strcmp(header, "")) { elm_object_part_text_set(popup, "title,text", header); elm_object_item_part_text_translatable_set(popup, "title,text", EINA_TRUE); } - if (body != NULL) + if (strcmp(body, "")) elm_object_text_set(popup, body); elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);