[Commits] [SCM] claws branch, master, updated. 3.17.3-194-g10af5ad

miras at claws-mail.org miras at claws-mail.org
Sun Jul 7 19:06:40 CEST 2019


The branch, master has been updated
       via  10af5adebb7a268f7294f51752b0227726efe181 (commit)
      from  4da0c05d2715f855ca78c98b2187688919dbfc0c (commit)

Summary of changes:
 src/procmime.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 10af5adebb7a268f7294f51752b0227726efe181
Author: Michael Rasmussen <mir at datanom.net>
Date:   Sun Jul 7 19:06:34 2019 +0200

    Return decode error in GError if pointer to GError structure provided
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/procmime.c b/src/procmime.c
index cc641c6..fe35130 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -2750,8 +2750,11 @@ GdkPixbuf *procmime_get_part_as_pixbuf(MimeInfo *mimeinfo, GError **error)
 		*error = NULL;
 
 	stream = procmime_get_part_as_inputstream(mimeinfo);
-	if (stream == NULL)
+	if (stream == NULL) {
+		if (error)
+			*error = g_error_new_literal(G_FILE_ERROR, -1, _("Could not decode part"));
 		return NULL;
+	}
 
 	pixbuf = gdk_pixbuf_new_from_stream(stream, NULL, error);
 	g_object_unref(stream);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list