Permalink
Browse files

Fixup on syntax for xcode 4

  • Loading branch information...
1 parent 5024759 commit e8b39f223c912e66afe2fd280eb26ac168a124a4 @mikeho committed May 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 QSSqLite3Database.m
View
2 QSSqLite3Database.m
@@ -31,7 +31,7 @@ @implementation QSSqLite3Database
#pragma mark Object Lifecycle
-(id)initWithFile:(NSString *)strDbPath {
- if (self = [super init]) {
+ if ((self = [super init]) != nil) {
if (sqlite3_open([strDbPath fileSystemRepresentation], &_objDatabase) != SQLITE_OK)
NSAssert1(false, @"SQLite Error on initWithFile: %s", sqlite3_errmsg(_objDatabase));
}

0 comments on commit e8b39f2

Please sign in to comment.