Fix for crash when data is nil

This commit is contained in:
Christopher Lyon Anderson
2012-09-19 09:13:04 +01:00
parent 859c5b794f
commit d8034d4c83
+1 -1
View File
@@ -267,7 +267,7 @@ NSString *MailCoreDecodeMIMEPhrase(char *data) {
char *decodedSubject;
NSString *result;
if (*data != '\0') {
if (data && *data != '\0') {
err = mailmime_encoded_phrase_parse(DEST_CHARSET, data, strlen(data),
&currToken, DEST_CHARSET, &decodedSubject);