Skip to content

Commit

Permalink
Change a potentially risky call (hopefully a fix for #2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoagx committed Mar 6, 2016
1 parent 393e467 commit fad5dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SPDatabaseData.m
Expand Up @@ -219,7 +219,7 @@ - (NSString *)getDefaultCollationForEncoding:(NSString *)encoding
}
}
}
return defaultCollationForCharacterSet;
return [[defaultCollationForCharacterSet copy] autorelease]; // -copy accepts nil, -stringWithString: does not
}

/**
Expand Down

0 comments on commit fad5dd8

Please sign in to comment.