[Commits] [SCM] claws branch, master, updated. 3.17.4-10-gb223e5d4e

mones at claws-mail.org mones at claws-mail.org
Wed Aug 21 11:37:38 CEST 2019


The branch, master has been updated
       via  b223e5d4e8b32132e44ee9f0723128febc9b9d93 (commit)
      from  960195482505a5d3facf15fbfb61817b11e9a08c (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_viewer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit b223e5d4e8b32132e44ee9f0723128febc9b9d93
Author: Ricardo Mones <ricardo at mones.org>
Date:   Wed Aug 21 11:37:22 2019 +0200

    Fix const correctness
    
    Fixes "lh_viewer.c:97:19: warning: initialization discards ‘const’
    qualifier from pointer target type"

diff --git a/src/plugins/litehtml_viewer/lh_viewer.c b/src/plugins/litehtml_viewer/lh_viewer.c
index 2d2fc5044..03775dc78 100644
--- a/src/plugins/litehtml_viewer/lh_viewer.c
+++ b/src/plugins/litehtml_viewer/lh_viewer.c
@@ -88,13 +88,14 @@ static void lh_show_mimepart(MimeViewer *_viewer, const gchar *infile,
 	LHViewer *viewer = (LHViewer *)_viewer;
 	gchar *string = procmime_get_part_as_string(partinfo, TRUE);
 	gchar *utf8 = NULL;
+	const gchar *charset;
 
 	if (string == NULL) {
 		g_warning("LH: couldn't get MIME part file\n");
 		return;
 	}
 
-	gchar *charset = procmime_mimeinfo_get_parameter(partinfo, "charset");
+	charset = procmime_mimeinfo_get_parameter(partinfo, "charset");
 	if (charset != NULL && g_ascii_strcasecmp("utf-8", charset) != 0) {
 		gsize length;
 		GError *error = NULL;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list