From 02a1c088d13b06d2682895450f919b84da53b6d3 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Tue, 18 Aug 2020 11:50:59 +0900 Subject: [PATCH] Fix dereference to NULL issue Change-Id: I160175201bd47d305970d3ae8693a5c5446dd7ec --- common/common_eap_connect.c | 4 +++- packaging/wifi-efl-ug.spec | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/common_eap_connect.c b/common/common_eap_connect.c index 87197c6..f3c1581 100644 --- a/common/common_eap_connect.c +++ b/common/common_eap_connect.c @@ -629,11 +629,13 @@ static void _gl_eap_type_item_sel_cb(void *data, Evas_Object *obj, void *event_i static char *_gl_eap_type_text_get(void *data, Evas_Object *obj, const char *part) { eap_connect_data_t *eap_data = (eap_connect_data_t *)data; - eap_type_t eap_type = __common_eap_connect_popup_get_eap_type(eap_data->ap); + eap_type_t eap_type = EAP_SEC_TYPE_UNKNOWN; if (!eap_data) return NULL; + eap_type = __common_eap_connect_popup_get_eap_type(eap_data->ap); + if (!g_strcmp0(part, g_genlist_info[WIFI_GENLIST_2LINE_STYLE].text_part)) return g_strdup(sc(eap_data->str_pkg_name, I18N_TYPE_EAP_method)); diff --git a/packaging/wifi-efl-ug.spec b/packaging/wifi-efl-ug.spec index 5d8ffcd..1eb9380 100644 --- a/packaging/wifi-efl-ug.spec +++ b/packaging/wifi-efl-ug.spec @@ -1,6 +1,6 @@ Name: wifi-efl-ug Summary: Wi-Fi UI Gadget for TIZEN -Version: 1.1.0 +Version: 1.1.1 Release: 1 Group: App/Network License: Flora-1.1 -- 2.7.4