From fbd3dc7494b5dc8a44c3119225030388d1133432 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 27 Feb 2018 18:51:12 +1000 Subject: [PATCH] Empty title aborts blog editor --- src/blog.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blog.c b/src/blog.c index 443b63e..eb9086b 100644 --- a/src/blog.c +++ b/src/blog.c @@ -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);