From 47df37ecfd005366cf1e498d587de422b1258ca1 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Mon, 9 Oct 2000 04:03:32 +0000 Subject: [PATCH] Tidied git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7768 72102866-910b-0410-8b05-ffd578937521 --- Source/GSTextStorage.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/GSTextStorage.m b/Source/GSTextStorage.m index b2e2fa544..d20e2d764 100644 --- a/Source/GSTextStorage.m +++ b/Source/GSTextStorage.m @@ -44,6 +44,7 @@ #include #include #include +#include #include #define SANITY_CHECKS 0 @@ -151,7 +152,8 @@ static void _setup() infCls = [GSTextInfo class]; infImp = [infCls methodForSelector: infSel]; - a = [[NSMutableArray allocWithZone: NSDefaultMallocZone()] initWithCapacity: 1]; + a = [NSMutableArray allocWithZone: NSDefaultMallocZone()]; + a = [a initWithCapacity: 1]; addImp = (void (*)())[a methodForSelector: addSel]; cntImp = (unsigned (*)())[a methodForSelector: cntSel]; insImp = (void (*)())[a methodForSelector: insSel];