[Commits] [SCM] claws branch, master, updated. 3.17.3-187-g8407241
miras at claws-mail.org
miras at claws-mail.org
Wed Jul 3 20:35:24 CEST 2019
The branch, master has been updated
via 84072413a8bda62e89537b4ca3fec7b980a09cef (commit)
from 6c147254b417562c8ccec22b2567cbe8aae4d232 (commit)
Summary of changes:
src/plugins/litehtml_viewer/lh_widget.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 84072413a8bda62e89537b4ca3fec7b980a09cef
Author: Michael Rasmussen <mir at datanom.net>
Date: Wed Jul 3 20:35:17 2019 +0200
If error is NULL print a static message instead
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 436bb76..8e8e808 100644
--- a/src/plugins/litehtml_viewer/lh_widget.cpp
+++ b/src/plugins/litehtml_viewer/lh_widget.cpp
@@ -456,8 +456,12 @@ GdkPixbuf *lh_widget::get_local_image(const litehtml::tstring url) const
stream = procmime_get_part_as_inputstream(p, &error);
if (error != NULL || stream == NULL) {
- g_warning("Couldn't get image MIME part: %s\n", error->message);
- g_error_free(error);
+ if (error != NULL) {
+ g_warning("Couldn't get image MIME part: %s\n", error->message);
+ g_error_free(error);
+ } else {
+ g_warning("Could not decode MIME part\n");
+ }
return NULL;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list