aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2016-03-06 01:20:45 +0100
committerMax <post@wickenrode.com>2016-03-06 01:23:02 +0100
commitdfc79b8c7ee2d37108b9e36822af95cfa4a31a07 (patch)
treef6f05a34da8420639978b96294ee9e5301aacf16
parent1e4d40f9a8dbc49e43d3e950a0a9121c7cb010f9 (diff)
downloadsequelpro-dfc79b8c7ee2d37108b9e36822af95cfa4a31a07.tar.gz
sequelpro-dfc79b8c7ee2d37108b9e36822af95cfa4a31a07.tar.bz2
sequelpro-dfc79b8c7ee2d37108b9e36822af95cfa4a31a07.zip
Change a potentially risky call (hopefully a fix for #2436)
-rw-r--r--Source/SPDatabaseData.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m
index 965dfcb5..f386a04c 100644
--- a/Source/SPDatabaseData.m
+++ b/Source/SPDatabaseData.m
@@ -221,7 +221,7 @@ copy_return:
}
}
}
- return defaultCollationForCharacterSet;
+ return [[defaultCollationForCharacterSet copy] autorelease]; // -copy accepts nil, -stringWithString: does not
}
/** Get the name of the mysql charset a given collation belongs to.