From: Radoslaw Czerski Date: Fri, 11 Mar 2016 15:37:59 +0000 (+0100) Subject: small optimization. X-Git-Tag: submit/tizen_mobile/20160419.064440~14^2~15^2~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b58e37f3ef0ec15c8508debbca211d60ac3ada32;p=profile%2Fmobile%2Fapps%2Fnative%2Findicator.git small optimization. Change-Id: I9d30fb11b7bbc62b63fba3e73bc9bf6ad0506015 Signed-off-by: Radoslaw Czerski --- diff --git a/src/modules/home/search.c b/src/modules/home/search.c index ceb2f75..09eacbc 100644 --- a/src/modules/home/search.c +++ b/src/modules/home/search.c @@ -154,7 +154,6 @@ static int register_search_module(void *data) ret = util_system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_LOCK_STATE, _lock_status_cb, data); retvm_if(ret != SYSTEM_SETTINGS_ERROR_NONE, FAIL, "Cannot set callback on lock state change"); - _handle_search_icon(data); return OK; @@ -187,9 +186,7 @@ static char *_access_info_cb(void *data, Evas_Object *obj) snprintf(buf, sizeof(buf), "%s, %s, %s", _("IDS_IDLE_SK_SMARTSEARCH_SEARCH"), _("IDS_COM_BODY_BUTTON_T_TTS"), _("IDS_IDLE_BODY_STATUS_BAR_ITEM")); - tmp = strdup(buf); - if (!tmp) return NULL; - return tmp; + return strdup(buf); }