Remove build warnings 41/101241/1
author“vijay.tiwari” <vijay.tiwari@samsung.com>
Wed, 30 Nov 2016 12:27:02 +0000 (17:57 +0530)
committer“vijay.tiwari” <vijay.tiwari@samsung.com>
Wed, 30 Nov 2016 12:27:31 +0000 (17:57 +0530)
Change-Id: Ieac034a1b2530cf907b122a226bb30556c68ffc8

src/item.c
src/main.c

index 130894b..e521c71 100644 (file)
@@ -462,7 +462,7 @@ Evas_Object *item_create(void *data, list_type_default_s *info)
        ao_app_icon = elm_access_object_register(icon, item);
        elm_atspi_accessible_name_set(ao_app_icon, info->name ? strdup(info->name) : NULL);
        snprintf(buf, sizeof(buf), S_("IDS_AT_BODY_PAGE_P1SD_OF_P2SD_T_TTS"), main_info->cur_page + 1, eina_list_count(main_info->pkg_list));
-       elm_atspi_accessible_description_set(ao_app_icon, buf ? strdup(buf) : NULL);
+       elm_atspi_accessible_description_set(ao_app_icon, strdup(buf));
        elm_atspi_accessible_translation_domain_set(ao_app_icon, PACKAGE);
        elm_atspi_accessible_reading_info_type_set(ao_app_icon, (ELM_ACCESSIBLE_READING_INFO_TYPE_NAME | ELM_ACCESSIBLE_READING_INFO_TYPE_DESCRIPTION));
        elm_access_action_cb_set(ao_app_icon, ELM_ACCESS_ACTION_ACTIVATE, _screen_reader_launch_app, main_info);
index 9c28985..ada25fa 100644 (file)
@@ -92,7 +92,7 @@ void screen_reader_set_highlight_by_index(int index, Eina_Bool can_highlight)
                if (access_obj) {
                        char buf[128] = { 0, };
                        snprintf(buf, sizeof(buf), S_("IDS_AT_BODY_PAGE_P1SD_OF_P2SD_T_TTS"), main_info->cur_page + 1, eina_list_count(main_info->pkg_list));
-                       elm_atspi_accessible_description_set(access_obj, buf ? strdup(buf) : NULL);
+                       elm_atspi_accessible_description_set(access_obj, strdup(buf));
                        elm_atspi_accessible_can_highlight_set(access_obj, can_highlight);
                }
        }