aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-10-20 22:42:41 +0000
committerrowanbeentje <rowan@beent.je>2011-10-20 22:42:41 +0000
commit57fd5f88863ffec21159f132670efac343c5d48d (patch)
tree48c4f8c432dab3c025fc765785bc9877f192ef2e /Source
parenta60219ad6b0d6988635f6cde44a6c6335872f439 (diff)
downloadsequelpro-57fd5f88863ffec21159f132670efac343c5d48d.tar.gz
sequelpro-57fd5f88863ffec21159f132670efac343c5d48d.tar.bz2
sequelpro-57fd5f88863ffec21159f132670efac343c5d48d.zip
- Fix two incorrect initialisations; thanks to sqlprodev for spotting these
Diffstat (limited to 'Source')
-rw-r--r--Source/SPServerSupport.m2
-rw-r--r--Source/SPTableContent.m2
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);