Permalink
Browse files

constructor should update self

  • Loading branch information...
1 parent a83d7ba commit dd66502409b7f3c6b26a40bb47436a07952348b5 @cvasilak cvasilak committed Mar 26, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 crypto-sdk/AGKeyPair.m
@@ -20,7 +20,9 @@
@implementation AGKeyPair
- (id)initWithPrivateKey:(NSData *)privateKey publicKey:(NSData *)publicKey {
- if ([super init]) {
+ self = [super init];
+
+ if (self) {
_publicKey = publicKey;
_privateKey = privateKey;
}

0 comments on commit dd66502

Please sign in to comment.