Skip to content

Commit

Permalink
Merge pull request booyah#11 from dmaclach/master
Browse files Browse the repository at this point in the history
Bad init fix
  • Loading branch information
jparise committed Nov 8, 2011
2 parents c23abdd + 957ccbd commit 1c2d0de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/Classes/RingBuffer.m
Expand Up @@ -3,8 +3,9 @@
@implementation RingBuffer

- (id)initWithData:(NSMutableData*)data {
if (![super init]) return nil;
buffer = [data retain];
if ((self = [super init])) {
buffer = [data retain];
}
return self;
}

Expand Down

0 comments on commit 1c2d0de

Please sign in to comment.