Permalink
Browse files

Note that +SHA1DigestOfContentsOfURL: doesn't handle nil URL

  • Loading branch information...
1 parent 362c73a commit b82a4b8a4777fdec14788c11bf4462b0be46d062 @mikeabdullah mikeabdullah committed Jul 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 KSSHA1Stream.h
View
@@ -55,7 +55,7 @@
@param URL The URL of the file to be hashed. May be anything Cocoa's URL Loading system supports.
@result The SHA1 digest of the file at `URL`, or `nil` if accessing the file failed.
*/
-+ (NSData *)SHA1DigestOfContentsOfURL:(NSURL *)URL;
++ (NSData *)SHA1DigestOfContentsOfURL:(NSURL *)URL __attribute((nonnull(1)));
/**
Asynchronously hashes the contents of a file.

0 comments on commit b82a4b8

Please sign in to comment.