We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3895a5 commit 282e817Copy full SHA for 282e817
SDWebImage/SDImageCache.m
@@ -112,6 +112,10 @@ - (NSString *)defaultCachePathForKey:(NSString *)key
112
- (NSString *)cachedFileNameForKey:(NSString *)key
113
{
114
const char *str = [key UTF8String];
115
+ if (str == NULL)
116
+ {
117
+ str = "";
118
+ }
119
unsigned char r[CC_MD5_DIGEST_LENGTH];
120
CC_MD5(str, (CC_LONG)strlen(str), r);
121
NSString *filename = [NSString stringWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
0 commit comments