Skip to content

Commit

Permalink
feat: reset tarWriter name to avoid potential errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rntrp committed Feb 4, 2024
1 parent 265d7ea commit 441af5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/fitzimg/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (w *tarWriter) FinishEntry() error {
Mode: 0600,
Size: int64(w.buf.Len()),
}
w.name = ""
if err := w.tar.WriteHeader(hdr); err != nil {
return err
} else if _, err := w.buf.WriteTo(w.tar); err != nil {
Expand Down

0 comments on commit 441af5f

Please sign in to comment.