From: Tomasz Swierczek Date: Fri, 16 Jun 2023 08:42:20 +0000 (+0200) Subject: Add checking of return value from app_event_get_language. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2006610f636e89eb98bb8a01ae22af1763c8acf;p=profile%2Fiot%2Fapps%2Fnative%2Faskuser-popup.git Add checking of return value from app_event_get_language. Change-Id: I7b9798986789e296121b72bca3f104b1fc9a5a55 --- diff --git a/ui/src/app_main.c b/ui/src/app_main.c index 8f792b5..d51d004 100644 --- a/ui/src/app_main.c +++ b/ui/src/app_main.c @@ -1,5 +1,5 @@ /** - * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2020-2023 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -270,8 +270,7 @@ static void ui_app_lang_changed(app_event_info_h event_info, void *user_data) { /*APP_EVENT_LANGUAGE_CHANGED*/ char* lang = NULL; - app_event_get_language(event_info, &lang); - if (lang) { + if (APP_ERROR_NONE == app_event_get_language(event_info, &lang) && lang) { elm_language_set(lang); free(lang); } else {