goto: add NULL check

Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4005
This commit is contained in:
Bowon Ryu 2016-06-02 16:01:13 +09:00 committed by Jaehyun Cho
parent 2889bf140f
commit 79ee03693c
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ static void
goto_line(goto_data *gd)
{
const char *txt = elm_entry_entry_get(gd->entry);
int line = atoi(txt);
int line = 0;
if (txt) line = atoi(txt);
enventor_object_line_goto(base_enventor_get(), line);
goto_close();
}