FIX: Fix crash when clicking on "empty" PID

This CAN happen. Avoid a crash here.
This commit is contained in:
Alastair Poole 2019-12-04 20:36:38 +00:00
parent 9026027b47
commit 920b61ee82
3 changed files with 4 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build/*
build

View File

@ -1 +1 @@
0.2.6
0.3.0-beta

View File

@ -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);