Skip to content

Commit dfc79b8

Browse files
committed
Change a potentially risky call (hopefully a fix for #2436)
1 parent 1e4d40f commit dfc79b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SPDatabaseData.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ - (NSString *)getDefaultCollationForEncoding:(NSString *)encoding
221221
}
222222
}
223223
}
224-
return defaultCollationForCharacterSet;
224+
return [[defaultCollationForCharacterSet copy] autorelease]; // -copy accepts nil, -stringWithString: does not
225225
}
226226

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

0 commit comments

Comments
 (0)