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:
parent
2889bf140f
commit
79ee03693c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue