Empty title aborts blog editor

This commit is contained in:
Andrew Pamment 2018-02-27 18:51:12 +10:00
parent 172034debc
commit fbd3dc7494

View File

@ -195,6 +195,11 @@ void blog_write() {
s_readstring(buffer, 64);
s_printf("\r\n");
if (strlen(buffer) == 0) {
s_printf(get_string(39));
return;
}
blog_subject = strdup(buffer);
blog_entry = external_editor(gUser, "No-One", "No-One", NULL, 0, "No-One", "Blog Editor", 0, 1);