From 74602de1dbd0c86476a726ea1ae3dec84804de4c 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 a807b56d5..d3069be6c 100644 --- a/UI/MailPartViewers/UIxMailPartHTMLViewer.m +++ b/UI/MailPartViewers/UIxMailPartHTMLViewer.m @@ -259,7 +259,7 @@ static NSData* _sanitizeContent(NSData *theData) tags = [VoidTags objectEnumerator]; tag = [tags nextObject]; - while (tag) + while (tag && found_tag) { if ([tag caseInsensitiveCompare: found_tag] == NSOrderedSame) {