From ce78cf2b7093c97fd8c206f7387f0e794accc339 Mon Sep 17 00:00:00 2001 From: iska Date: Sun, 22 Mar 2015 15:59:55 +0100 Subject: [PATCH] Fix data initialization in the HTMLText node --- HTMLKit/HTMLText.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HTMLKit/HTMLText.m b/HTMLKit/HTMLText.m index 06de445..d1c74a2 100644 --- a/HTMLKit/HTMLText.m +++ b/HTMLKit/HTMLText.m @@ -19,8 +19,7 @@ { self = [super initWithName:@"#text" type:HTMLNodeText]; if (self) { - self.data = [NSMutableString new]; - [self.data setString:data ?: @""]; + _data = [[NSMutableString alloc] initWithString:data]; } return self; }