Check that initial text is actually set befor trying to strdup it.

SVN revision: 25601
This commit is contained in:
Christopher Michael 2006-09-07 16:56:54 +00:00
parent 9bae66d7be
commit bc5923cafd
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ e_entry_dialog_show(const char *title, const char *icon, const char *text,
ed->ok.data = data;
ed->cancel.func = cancel_func;
ed->cancel.data = data;
ed->text = strdup(initial_text);
if (initial_text)
ed->text = strdup(initial_text);
dia = e_dialog_new(e_container_current_get(e_manager_current_get()), "E", "_entry_dialog");
if (!dia)