mirror of https://github.com/djcb/mu.git
* mu-msg.c: return NULL rather than "" if there is no body (get_body)
This commit is contained in:
parent
8109410c58
commit
6470ff989a
|
@ -491,7 +491,11 @@ get_body (MuMsg *self, MuMsgOptions opts, gboolean want_html)
|
||||||
(MuMsgPartForeachFunc)accumulate_body,
|
(MuMsgPartForeachFunc)accumulate_body,
|
||||||
&bdata);
|
&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*
|
const char*
|
||||||
|
|
Loading…
Reference in New Issue