goto: add null checking about the return value of elm_entry_entry_get

Summary:
there is no null checking condition,
so I added the null checking condition about the return value of elm_entry_entry_get.
@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3763
This commit is contained in:
taehyub 2016-03-04 23:39:35 +09:00 committed by Hermet Park
parent a512a80782
commit c8f5d743cb
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ entry_changed_cb(void *data, Evas_Object *obj, void* event_info EINA_UNUSED)
{
goto_data *gd = data;
const char *txt = elm_entry_entry_get(obj);
if (!txt) return;
if (txt[0] == 0) return;
int line = atoi(txt);