This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zip: fix File.Open not working if called after zip.Extract completes (#…
…367) The zip.Extract method creates a closure for the File.Open function pointer sent to the handler method. Unfortunately it uses the same File for each call to the handler function which means that if the caller stores the File objects and uses them after Extract has returned then each File.Open function pointer will open the same object. This is easily fixed by making sure that each iteration of the Extract loop uses a new File variable.
- Loading branch information