talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 84072413a8bda62e89537b4ca3fec7b980a09cef
parent 6c147254b417562c8ccec22b2567cbe8aae4d232
Author: Michael Rasmussen <mir@datanom.net>
Date:   Wed,  3 Jul 2019 20:35:17 +0200

If error is NULL print a static message instead

Signed-off-by: Michael Rasmussen <mir@datanom.net>

Diffstat:
Msrc/plugins/litehtml_viewer/lh_widget.cpp | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 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; }