Skip to content
Permalink
Browse files

Change a potentially risky call (hopefully a fix for #2436)

  • Loading branch information...
dmoagx committed Mar 6, 2016
1 parent 1e4d40f commit dfc79b8c7ee2d37108b9e36822af95cfa4a31a07
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/SPDatabaseData.m
@@ -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.

0 comments on commit dfc79b8

Please sign in to comment.
You can’t perform that action at this time.