FIX: Fix crash when clicking on "empty" PID
This CAN happen. Avoid a crash here.
This commit is contained in:
parent
9026027b47
commit
920b61ee82
|
@ -0,0 +1,2 @@
|
||||||
|
build/*
|
||||||
|
build
|
2
src/ui.c
2
src/ui.c
|
@ -1181,7 +1181,7 @@ _entry_pid_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
|
||||||
return;
|
return;
|
||||||
|
|
||||||
text = evas_textblock_cursor_paragraph_text_get(pos);
|
text = evas_textblock_cursor_paragraph_text_get(pos);
|
||||||
if (!text)
|
if (!text || !text[0])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pid_text = strdup(text);
|
pid_text = strdup(text);
|
||||||
|
|
Loading…
Reference in New Issue