From d770ed9688b7e99b084d37c6b1e841a7eb8aad7a Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 25 Feb 2010 13:48:37 +0000 Subject: [PATCH] Correct version of last fix... --- init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.c b/init.c index 6f19947..fadb71d 100644 --- a/init.c +++ b/init.c @@ -734,9 +734,12 @@ __objc_compute_ivar_offsets (Class class) { Class super = class_superclass_of_class(class); long ivar_start = 0; - if (Nil != super && super->instance_size <= 0) + if (Nil != super) { - __objc_compute_ivar_offsets(super); + if (super->instance_size <= 0) + { + __objc_compute_ivar_offsets(super); + } ivar_start = super->instance_size; } class->instance_size = ivar_start - class->instance_size;