Permalink
Browse files

fix a bug in SDImageCache making first request to disk cache to alway…

…s return nil (fix #81)
  • Loading branch information...
1 parent 14b7973 commit a8d5b3ec72a94fa9a9e632dbdbf8463e8bec923d @rs rs committed Mar 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SDImageCache.m
View
@@ -245,7 +245,7 @@ - (UIImage *)imageFromKey:(NSString *)key fromDisk:(BOOL)fromDisk
if (!image && fromDisk)
{
- UIImage *image = SDScaledImageForPath(key, [NSData dataWithContentsOfFile:[self cachePathForKey:key]]);
+ image = SDScaledImageForPath(key, [NSData dataWithContentsOfFile:[self cachePathForKey:key]]);
if (image)
{
[memCache setObject:image forKey:key];

0 comments on commit a8d5b3e

Please sign in to comment.