[Commits] [SCM] claws branch, master, updated. 3.9.0-196-g06e09c8

claws at claws-mail.org claws at claws-mail.org
Wed Apr 24 11:19:57 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  06e09c818f9455537e82e8395d658e0be336f873 (commit)
      from  31d93a0fc959abdad1733e393e6ef65302958751 (commit)


- Log -----------------------------------------------------------------
commit 06e09c818f9455537e82e8395d658e0be336f873
Author: Paul <paul at claws-mail.org>
Date:   Wed Apr 24 10:19:48 2013 +0100

    further fix to bug #2862, 'Segmentation fault when replying to a message where the "code conversion" fails'

diff --git a/src/procmime.c b/src/procmime.c
index 5796741..2fe223b 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -798,17 +798,16 @@ gboolean procmime_scan_text_content(MimeInfo *mimeinfo,
 	} else if (mimeinfo->type == MIMETYPE_TEXT) {
 		while (SC_FGETS(buf, sizeof(buf), tmpfp) != NULL) {
 			str = conv_codeset_strdup(buf, src_codeset, CS_UTF_8);
+			if (!str)
+				str =  conv_codeset_strdup(buf, conv_get_locale_charset_str(), CS_UTF_8);
 			if (str) {
-				if ((scan_ret = scan_callback(str, cb_data)) == TRUE) {
-					g_free(str);
-					break;
-				}
-				g_free(str);
-			} else {
+ 				if ((scan_ret = scan_callback(str, cb_data)) == TRUE) {
+ 					g_free(str);
+ 					break;
+ 				}
+ 				g_free(str);	
+			} else
 				conv_fail = TRUE;
-				if ((scan_ret = scan_callback(str, cb_data)) == TRUE)
-					break;
-			}
 		}
 	}
 

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

Summary of changes:
 src/procmime.c |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list