From 920b61ee821806a379abba845fb4c10581c45cd0 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Wed, 4 Dec 2019 20:36:38 +0000 Subject: [PATCH] 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(-) create mode 100644 .gitignore 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);