[Commits] [SCM] claws branch, master, updated. 3.17.3-186-g6c14725

miras at claws-mail.org miras at claws-mail.org
Wed Jul 3 20:16:53 CEST 2019


The branch, master has been updated
       via  6c147254b417562c8ccec22b2567cbe8aae4d232 (commit)
      from  ab7a28732a1bd38741d951dc3975f53460d6e66b (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_widget.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 6c147254b417562c8ccec22b2567cbe8aae4d232
Author: Michael Rasmussen <mir at datanom.net>
Date:   Wed Jul 3 20:16:44 2019 +0200

    Since procmime_get_part_as_inputstream can return NULL and never touches error we need to bail if stream is NULL
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp
index fb2d2a6..436bb76 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -455,7 +455,7 @@ GdkPixbuf *lh_widget::get_local_image(const litehtml::tstring url) const
 			GError *error = NULL;
 
 			stream = procmime_get_part_as_inputstream(p, &error);
-			if (error != NULL) {
+			if (error != NULL || stream == NULL) {
 				g_warning("Couldn't get image MIME part: %s\n", error->message);
 				g_error_free(error);
 				return NULL;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list