hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=c8f5d743cbb6add2b766a812f43fbcc6ee5aec24

commit c8f5d743cbb6add2b766a812f43fbcc6ee5aec24
Author: taehyub <taehyub....@samsung.com>
Date:   Fri Mar 4 23:39:35 2016 +0900

    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
---
 src/bin/goto.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/goto.c b/src/bin/goto.c
index fb1245e..3fdaafa 100644
--- a/src/bin/goto.c
+++ b/src/bin/goto.c
@@ -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);

-- 


Reply via email to