Revision: 7268
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7268&view=rev
Author:   hofman
Date:     2011-06-12 10:27:13 +0000 (Sun, 12 Jun 2011)

Log Message:
-----------
use NULL for pointer

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2011-06-08 22:21:07 UTC (rev 7267)
+++ trunk/SKMainDocument.m      2011-06-12 10:27:13 UTC (rev 7268)
@@ -1552,14 +1552,14 @@
     const char *account = [fileID UTF8String];
     NSInteger status = 0;
     
-    OSStatus err = SecKeychainFindGenericPassword(NULL, strlen(service), 
service, strlen(account), account, password ? &passwordLength : 0, password ? 
&passwordData : NULL, itemRef);
+    OSStatus err = SecKeychainFindGenericPassword(NULL, strlen(service), 
service, strlen(account), account, password ? &passwordLength : NULL, password 
? &passwordData : NULL, itemRef);
     
     if (err == errSecItemNotFound) {
         // try to find an item in the old format
         service = [[@"Skim - " stringByAppendingString:fileID] UTF8String];
         account = [NSUserName() UTF8String];
         
-        err = SecKeychainFindGenericPassword(NULL, strlen(service), service, 
strlen(account), account, password ? &passwordLength : 0, password ? 
&passwordData : NULL, itemRef);
+        err = SecKeychainFindGenericPassword(NULL, strlen(service), service, 
strlen(account), account, password ? &passwordLength : NULL, password ? 
&passwordData : NULL, itemRef);
         
         status = (err == noErr ? SKPDFPasswordStatusFoundOldFormat : err == 
errSecItemNotFound ? SKPDFPasswordStatusNotFound : SKPDFPasswordStatusError);
     } else {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to