aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-03-05 00:16:49 +0000
committerrowanbeentje <rowan@beent.je>2013-03-05 00:16:49 +0000
commitb5742523d753e23a28b1a1de60757a782989cd26 (patch)
treed93337701ca46c153dd9910477eba4aee9bacbd9
parent2d9e30ebc8a5937d0c9a41fc8d995cd5287040a7 (diff)
downloadsequelpro-b5742523d753e23a28b1a1de60757a782989cd26.tar.gz
sequelpro-b5742523d753e23a28b1a1de60757a782989cd26.tar.bz2
sequelpro-b5742523d753e23a28b1a1de60757a782989cd26.zip
- Apply schlabberdog's fix for log #3969, addressing Issue #1647
-rw-r--r--Source/SPKeychain.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPKeychain.m b/Source/SPKeychain.m
index 9d9c89a5..03ba464f 100644
--- a/Source/SPKeychain.m
+++ b/Source/SPKeychain.m
@@ -58,6 +58,11 @@
SecKeychainAttribute attributes[4];
SecKeychainAttributeList attList;
+ // If a nil password was supplied, do nothing.
+ if (!password) {
+ return;
+ }
+
// Check supplied variables and replaces nils with empty strings
if (!name) name = @"";
if (!account) account = @"";