Skip to content

Commit

Permalink
Handle [super init] returning nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Jun 23, 2011
1 parent 5e28b8f commit 08e518d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions KSSHA1Stream.m
Expand Up @@ -13,8 +13,10 @@ @implementation KSSHA1Stream

- (id)init;
{
[super init];
CC_SHA1_Init(&_ctx);
if (self = [super init])
{
CC_SHA1_Init(&_ctx);
}
return self;
}

Expand Down

0 comments on commit 08e518d

Please sign in to comment.