Skip to content

Commit

Permalink
Initialize variable "totalEntries"
Browse files Browse the repository at this point in the history
  • Loading branch information
agustaf9 committed Aug 6, 2024
1 parent b148463 commit f381c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ module.exports = function (/*Buffer|null*/ inBuffer, /** object */ options) {
const headerBlocks = [];
let totalSize = 0;
let dindex = 0;
let totalEntries = 0;

mainHeader.size = 0;
mainHeader.offset = 0;
totalEntries = 0;

for (const entry of this.entries) {
// compress data and set local and entry header accordingly. Reason why is called first
Expand Down

0 comments on commit f381c02

Please sign in to comment.