mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Merge pull request #344 from MaddTheSane/staticFix
Fix a bug pointed out by the Static Analyzer.
This commit is contained in:
commit
e2674a7549
1 file changed
+1
-1
+1
-1
@@ -72,7 +72,7 @@ extern int bsdiff(int argc, const char **argv);
|
||||
static NSDictionary *infoForFile(FTSENT *ent)
|
||||
{
|
||||
NSData *hash = hashOfFile(ent);
|
||||
NSNumber *size = nil;
|
||||
NSNumber *size = @0;
|
||||
if (ent->fts_info != FTS_D) {
|
||||
size = @(ent->fts_statp->st_size);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user