Skip to content

Commit

Permalink
Fix infinite recursion in RCTSettingsManager init
Browse files Browse the repository at this point in the history
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 b78b8cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libraries/Settings/RCTSettingsManager.h
Expand Up @@ -13,6 +13,6 @@

@interface RCTSettingsManager : NSObject <RCTBridgeModule>

- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults;
- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults NS_DESIGNATED_INITIALIZER;

@end
2 changes: 1 addition & 1 deletion Libraries/Settings/RCTSettingsManager.m
Expand Up @@ -36,7 +36,7 @@ - (instancetype)init

- (instancetype)initWithUserDefaults:(NSUserDefaults *)defaults
{
if ((self = [self init])) {
if ((self = [super init])) {
_defaults = defaults;


Expand Down

0 comments on commit b78b8cc

Please sign in to comment.