Skip to content

Commit c5f6175

Browse files
authored
Avoid a crash if there is no backed up config file on tvOS (#15694)
1 parent a8a33cf commit c5f6175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/drivers/cocoa/cocoa_common.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ bool cocoa_get_metrics(
863863
{
864864
config_file_t *conf = NULL;
865865
NSString *backup = [NSUserDefaults.standardUserDefaults stringForKey:@FILE_PATH_MAIN_CONFIG];
866-
if ([backup length] >= 0)
866+
if ([backup length] > 0)
867867
{
868868
char *str = strdup(backup.UTF8String);
869869
conf = config_file_new_from_string(str, path_get(RARCH_PATH_CONFIG));

0 commit comments

Comments
 (0)