Permalink
Browse files

Merge pull request #43 from Electriclabs/Fixup

Fix for crash when data is nil
  • Loading branch information...
2 parents 859c5b7 + d8034d4 commit 4012917c5c9c4d3c611058eb4e97999f0b38d957 @mronge mronge committed Sep 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/MailCoreUtilities.m
@@ -267,7 +267,7 @@ void MailCoreDisableLogging() {
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);

0 comments on commit 4012917

Please sign in to comment.