[gmime/gmime-2-4] Make sure to always initialize the ascii state variable



commit ba2e8d014b01c1a4ef3c7bafdc42fd090e21d24f
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Mon Aug 13 17:12:48 2012 -0400

    Make sure to always initialize the ascii state variable
    
    2012-08-13  Jeffrey Stedfast  <jeff xamarin com>
    
    	* gmime/gmime-utils.c (tokenize_rfc2047_phrase): Don't forget to
    	initialize 'ascii' to TRUE.

 ChangeLog           |    5 +++++
 gmime/gmime-utils.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e0e7c00..812d9a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-13  Jeffrey Stedfast  <jeff xamarin com>
+
+	* gmime/gmime-utils.c (tokenize_rfc2047_phrase): Don't forget to
+	initialize 'ascii' to TRUE.
+
 2012-08-05  Jeffrey Stedfast  <jeff xamarin com>
 
 	* gmime/gmime-utils.c (rfc2047_token_new_encoded_word): Make sure
diff --git a/gmime/gmime-utils.c b/gmime/gmime-utils.c
index 8ea544e..6fe7ba9 100644
--- a/gmime/gmime-utils.c
+++ b/gmime/gmime-utils.c
@@ -1944,6 +1944,7 @@ tokenize_rfc2047_phrase (const char *in, size_t *len)
 			lwsp = NULL;
 		
 		word = inptr;
+		ascii = TRUE;
 		if (is_atom (*inptr)) {
 			if (G_UNLIKELY (enable_rfc2047_workarounds)) {
 				/* Make an extra effort to detect and



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]