diff --git a/lib/mu-msg.c b/lib/mu-msg.c index 7a0d7e2e..f619b058 100644 --- a/lib/mu-msg.c +++ b/lib/mu-msg.c @@ -491,7 +491,11 @@ get_body (MuMsg *self, MuMsgOptions opts, gboolean want_html) (MuMsgPartForeachFunc)accumulate_body, &bdata); - return g_string_free (bdata.gstr, FALSE); + if (bdata.gstr->len == 0) { + g_string_free (bdata.gstr, TRUE); + return NULL; + } else + return g_string_free (bdata.gstr, FALSE); } const char*