summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLStartTime.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLStartTime.m')
-rw-r--r--SmartDeviceLink/SDLStartTime.m12
1 files changed, 8 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLStartTime.m b/SmartDeviceLink/SDLStartTime.m
index d17575ff5..2ee6e3a03 100644
--- a/SmartDeviceLink/SDLStartTime.m
+++ b/SmartDeviceLink/SDLStartTime.m
@@ -21,11 +21,15 @@
}
- (instancetype)initWithHours:(NSInteger)hours minutes:(NSInteger)minutes seconds:(NSInteger)seconds {
- if (self = [super init]) {
- self.hours = @(hours);
- self.minutes = @(minutes);
- self.seconds = @(seconds);
+ self = [self init];
+ if (!self) {
+ return nil;
}
+
+ self.hours = @(hours);
+ self.minutes = @(minutes);
+ self.seconds = @(seconds);
+
return self;
}