Skip to content
This repository
Browse code

Making sure to initialize all Security types

  • Loading branch information...
commit 22b65a3095cfd527a334450a7dfe6434ad9741b7 1 parent 21f9546
Andy Matuschak authored July 05, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  SUCodeSigningVerifier.m
4  SUCodeSigningVerifier.m
@@ -72,11 +72,11 @@ + (BOOL)hostApplicationIsCodeSigned
72 72
     if (SecCodeCopySelf == NULL) return NO;
73 73
     
74 74
     OSStatus result;
75  
-    SecCodeRef hostCode;
  75
+    SecCodeRef hostCode = NULL;
76 76
     result = SecCodeCopySelf(kSecCSDefaultFlags, &hostCode);
77 77
     if (result != 0) return NO;
78 78
     
79  
-    SecRequirementRef requirement;
  79
+    SecRequirementRef requirement = NULL;
80 80
     result = SecCodeCopyDesignatedRequirement(hostCode, kSecCSDefaultFlags, &requirement);
81 81
     if (hostCode) CFRelease(hostCode);
82 82
     if (requirement) CFRelease(requirement);

0 notes on commit 22b65a3

Please sign in to comment.
Something went wrong with that request. Please try again.