Permalink
Browse files

Fix infinite recursion in RCTSettingsManager init

Reviewed By: fromcelticpark

Differential Revision: D5592555

fbshipit-source-id: edf5cdd91f057879edb22b8883902fec99b2d2cc
  • Loading branch information...
javache authored and facebook-github-bot committed Aug 9, 2017
1 parent d268c1f commit b78b8cc9e7db0219f3bfb776860f3c3723dbe0b2
Showing with 2 additions and 2 deletions.
  1. +1 −1 Libraries/Settings/RCTSettingsManager.h
  2. +1 −1 Libraries/Settings/RCTSettingsManager.m
@@ -13,6 +13,6 @@
@interface RCTSettingsManager : NSObject <RCTBridgeModule>
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults;
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults NS_DESIGNATED_INITIALIZER;
@end
@@ -36,7 +36,7 @@ - (instancetype)init
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults
{
if ((self = [self init])) {
if ((self = [super init])) {
_defaults = defaults;

0 comments on commit b78b8cc

Please sign in to comment.