aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseData.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2016-03-06 01:20:45 +0100
committerMax <post@wickenrode.com>2016-03-06 01:20:45 +0100
commitfad5dd8e734a3639e02b64038a0b36d4304a1ea8 (patch)
tree6877594b661d2d6ddbe5f058920c50ba033b0db5 /Source/SPDatabaseData.m
parent393e467ed367e669d6aaa8ae4921d06cff3652f3 (diff)
downloadsequelpro-fad5dd8e734a3639e02b64038a0b36d4304a1ea8.tar.gz
sequelpro-fad5dd8e734a3639e02b64038a0b36d4304a1ea8.tar.bz2
sequelpro-fad5dd8e734a3639e02b64038a0b36d4304a1ea8.zip
Change a potentially risky call (hopefully a fix for #2436)
Diffstat (limited to 'Source/SPDatabaseData.m')
-rw-r--r--Source/SPDatabaseData.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m
index 2d1d4f14..1d5339d9 100644
--- a/Source/SPDatabaseData.m
+++ b/Source/SPDatabaseData.m
@@ -219,7 +219,7 @@ copy_return:
}
}
}
- return defaultCollationForCharacterSet;
+ return [[defaultCollationForCharacterSet copy] autorelease]; // -copy accepts nil, -stringWithString: does not
}
/**