FIX: Fix crash when clicking on "empty" PID

This CAN happen. Avoid a crash here.
edi-0.5
Alastair Poole 3 years ago
parent 9026027b47
commit 920b61ee82
  1. 2
      .gitignore
  2. 2
      VERSION
  3. 2
      src/ui.c

2
.gitignore vendored

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

@ -1 +1 @@
0.2.6
0.3.0-beta

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

Loading…
Cancel
Save