forked from enlightenment/enlightenment
Check that initial text is actually set befor trying to strdup it.
SVN revision: 25601
This commit is contained in:
parent
9bae66d7be
commit
bc5923cafd
|
@ -24,6 +24,7 @@ e_entry_dialog_show(const char *title, const char *icon, const char *text,
|
||||||
ed->ok.data = data;
|
ed->ok.data = data;
|
||||||
ed->cancel.func = cancel_func;
|
ed->cancel.func = cancel_func;
|
||||||
ed->cancel.data = data;
|
ed->cancel.data = data;
|
||||||
|
if (initial_text)
|
||||||
ed->text = strdup(initial_text);
|
ed->text = strdup(initial_text);
|
||||||
|
|
||||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()), "E", "_entry_dialog");
|
dia = e_dialog_new(e_container_current_get(e_manager_current_get()), "E", "_entry_dialog");
|
||||||
|
|
Loading…
Reference in New Issue