diff options
author | rowanbeentje <rowan@beent.je> | 2013-03-05 00:16:49 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-03-05 00:16:49 +0000 |
commit | b5742523d753e23a28b1a1de60757a782989cd26 (patch) | |
tree | d93337701ca46c153dd9910477eba4aee9bacbd9 /Source/SPKeychain.m | |
parent | 2d9e30ebc8a5937d0c9a41fc8d995cd5287040a7 (diff) | |
download | sequelpro-b5742523d753e23a28b1a1de60757a782989cd26.tar.gz sequelpro-b5742523d753e23a28b1a1de60757a782989cd26.tar.bz2 sequelpro-b5742523d753e23a28b1a1de60757a782989cd26.zip |
- Apply schlabberdog's fix for log #3969, addressing Issue #1647
Diffstat (limited to 'Source/SPKeychain.m')
-rw-r--r-- | Source/SPKeychain.m | 5 |
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 = @""; |