Skip to content

Commit

Permalink
✔️ Coverity - Unguarded write
Browse files Browse the repository at this point in the history
  • Loading branch information
evrignaud committed May 11, 2016
1 parent 0b24cfe commit 10d54b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/org/fim/internal/hash/HashProgress.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ public HashProgress(Context context) {
}

public void outputInit() {
summedFileLength = 0;
fileCount = 0;
progressLock.lock();
try {
summedFileLength = 0;
fileCount = 0;
} finally {
progressLock.unlock();
}
}

public void updateOutput(long fileSize) throws IOException {
Expand Down

0 comments on commit 10d54b4

Please sign in to comment.