Revision: 7222
http://skim-app.svn.sourceforge.net/skim-app/?rev=7222&view=rev
Author: hofman
Date: 2011-05-11 09:17:45 +0000 (Wed, 11 May 2011)
Log Message:
-----------
add an extra sanity check when adding password, should never happen
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2011-05-10 20:36:13 UTC (rev 7221)
+++ trunk/SKMainDocument.m 2011-05-11 09:17:45 UTC (rev 7222)
@@ -1655,7 +1655,7 @@
err = SecKeychainItemModifyAttributesAndData(itemRef, &attributes,
passwordLength, passwordData);
if (err != noErr)
NSLog(@"Error %d occurred modifying password: %@", err,
[(id)SecCopyErrorMessageString(err, NULL) autorelease]);
- } else {
+ } else if (password) {
// password not on keychain, so add it
err = SecKeychainItemCreateFromContent(kSecGenericPasswordItemClass,
&attributes, passwordLength, passwordData, NULL, NULL, NULL);
if (err != noErr)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit