From 3e30453f1714b03be1a6588e174a3f256e80cf5f Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 14 Jun 2008 16:31:50 +0200 Subject: Call [super init] from every initialiser of every class. --- MLKLinkedList.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MLKLinkedList.m') diff --git a/MLKLinkedList.m b/MLKLinkedList.m index 3f047a0..b5c1c66 100644 --- a/MLKLinkedList.m +++ b/MLKLinkedList.m @@ -8,12 +8,14 @@ @implementation MLKLinkedList -(MLKLinkedList*) init { + self = [super init]; _firstCons = nil; return self; } -(MLKLinkedList*) initWithCons:(MLKCons*)cons { + self = [super init]; ASSIGN (_firstCons, cons); return self; } -- cgit v1.2.3