netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=920b61ee821806a379abba845fb4c10581c45cd0
commit 920b61ee821806a379abba845fb4c10581c45cd0 Author: Alastair Poole <[email protected]> Date: Wed Dec 4 20:36:38 2019 +0000 FIX: Fix crash when clicking on "empty" PID This CAN happen. Avoid a crash here. --- .gitignore | 2 ++ VERSION | 2 +- src/ui.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1181d07 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build/* +build diff --git a/VERSION b/VERSION index 53a75d6..f2b3082 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.6 +0.3.0-beta diff --git a/src/ui.c b/src/ui.c index 5fdac0b..ef545e5 100644 --- a/src/ui.c +++ b/src/ui.c @@ -1181,7 +1181,7 @@ _entry_pid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info return; text = evas_textblock_cursor_paragraph_text_get(pos); - if (!text) + if (!text || !text[0]) return; pid_text = strdup(text); --
