summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnLanguageChange.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLOnLanguageChange.m')
-rw-r--r--SmartDeviceLink/SDLOnLanguageChange.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLOnLanguageChange.m b/SmartDeviceLink/SDLOnLanguageChange.m
index cccfbb55f..922b86eec 100644
--- a/SmartDeviceLink/SDLOnLanguageChange.m
+++ b/SmartDeviceLink/SDLOnLanguageChange.m
@@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
}
- (SDLLanguage)language {
- NSError *error;
+ NSError *error = nil;
return [parameters sdl_enumForName:SDLRPCParameterNameLanguage error:&error];
}
@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
}
- (SDLLanguage)hmiDisplayLanguage {
- NSError *error;
+ NSError *error = nil;
return [parameters sdl_enumForName:SDLRPCParameterNameHMIDisplayLanguage error:&error];
}