X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fcompose.c;h=76cfb86e37ace162a2255e170ea785864a655597;hp=7a220bb9b453eb1c0d9262495577f774b806c191;hb=5bb7c89c480e41499de449045419c05364d17d71;hpb=953553b3b6dea7238b076844e1d72f69363fae6e diff --git a/src/compose.c b/src/compose.c index 7a220bb9b..76cfb86e3 100644 --- a/src/compose.c +++ b/src/compose.c @@ -1512,15 +1512,18 @@ static gchar *compose_quote_fmt(Compose *compose, MsgInfo *msginfo, Xstrdup_a(quote_str, buf, return NULL) } - quote_fmt_init(msginfo, quote_str); - quote_fmt_scan_string(fmt); - quote_fmt_parse(); + if (fmt && *fmt != '\0') { + quote_fmt_init(msginfo, quote_str); + quote_fmt_scan_string(fmt); + quote_fmt_parse(); - buf = quote_fmt_get_buffer(); - if (buf == NULL) { - alertpanel_error(_("Message reply/forward format error.")); - return NULL; - } + buf = quote_fmt_get_buffer(); + if (buf == NULL) { + alertpanel_error(_("Message reply/forward format error.")); + return NULL; + } + } else + buf = ""; gtk_stext_freeze(text); gtk_stext_set_point(text, 0);