From 7cbb1d09116a5ae3015055eacd2bf754ba22910f Mon Sep 17 00:00:00 2001 From: Ickhee Woo Date: Thu, 22 Sep 2016 13:23:45 +0900 Subject: fix for svace issue Change-Id: Id60572778bc355caa59ff20707b22cb4f0a03ca9 Signed-off-by: Ickhee Woo --- wearable/app/src/my-account-view-main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wearable/app/src/my-account-view-main.c b/wearable/app/src/my-account-view-main.c index d295f36..a1e64e4 100755 --- a/wearable/app/src/my-account-view-main.c +++ b/wearable/app/src/my-account-view-main.c @@ -661,8 +661,6 @@ static bool __myaccount_get_account_app_info_cb(account_type_h account_type, voi ret = account_type_get_label_by_locale(account_type, "en_GB", &provider_name); else ret = account_type_get_label_by_locale(account_type, ad->current_language, &provider_name); - } else { - return FALSE; } if (ret != ACCOUNT_ERROR_NONE) { @@ -691,6 +689,9 @@ static bool __myaccount_get_account_app_info_cb(account_type_h account_type, voi return TRUE; } + if (ad == NULL) + return FALSE; + ad->account_app_list = g_list_append(ad->account_app_list, (void*)app_info); return TRUE; -- cgit v1.2.3