From fbd2f1511be20f3fbab85e0901bf1ef77ea372dc Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 6 May 2016 08:14:37 -0400 Subject: [PATCH] (fix) make sure found tag is always defined --- UI/MailPartViewers/UIxMailPartHTMLViewer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MailPartViewers/UIxMailPartHTMLViewer.m b/UI/MailPartViewers/UIxMailPartHTMLViewer.m index d464fbfc2..e0cdb6193 100644 --- a/UI/MailPartViewers/UIxMailPartHTMLViewer.m +++ b/UI/MailPartViewers/UIxMailPartHTMLViewer.m @@ -267,7 +267,7 @@ static NSData* _sanitizeContent(NSData *theData) tags = [VoidTags objectEnumerator]; tag = [tags nextObject]; - while (tag) + while (tag && found_tag) { if ([tag caseInsensitiveCompare: found_tag] == NSOrderedSame) {