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 1e4d40f commit dfc79b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SPDatabaseData.m
Expand Up @@ -221,7 +221,7 @@ - (NSString *)getDefaultCollationForEncoding:(NSString *)encoding
}
}
}
return defaultCollationForCharacterSet;
return [[defaultCollationForCharacterSet copy] autorelease]; // -copy accepts nil, -stringWithString: does not
}

/** Get the name of the mysql charset a given collation belongs to.
Expand Down

0 comments on commit dfc79b8

Please sign in to comment.