From 57fd5f88863ffec21159f132670efac343c5d48d Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 20 Oct 2011 22:42:41 +0000 Subject: - Fix two incorrect initialisations; thanks to sqlprodev for spotting these --- Source/SPServerSupport.m | 2 +- Source/SPTableContent.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SPServerSupport.m b/Source/SPServerSupport.m index 937069f8..3d38ff79 100644 --- a/Source/SPServerSupport.m +++ b/Source/SPServerSupport.m @@ -82,7 +82,7 @@ */ - (id)initWithMajorVersion:(NSInteger)majorVersion minor:(NSInteger)minorVersion release:(NSInteger)releaseVersion { - if ((self == [super init])) { + if ((self = [super init])) { serverMajorVersion = majorVersion; serverMinorVersion = minorVersion; diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 68b3ae55..7cffef85 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -89,7 +89,7 @@ */ - (id)init { - if ((self == [super init])) { + if ((self = [super init])) { _mainNibLoaded = NO; isWorking = NO; pthread_mutex_init(&tableValuesLock, NULL); -- cgit v1.2.3