1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-12-23 22:06:31 +00:00

tar/asm: handle nil tar Header

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2015-06-23 12:23:36 -04:00
parent 174287a8aa
commit 86ada47639

View file

@ -64,6 +64,9 @@ func NewInputTarStream(r io.Reader, p storage.Packer, fp storage.FilePutter) (io
}
break // not return. We need the end of the reader.
}
if hdr == nil {
break // not return. We need the end of the reader.
}
if _, err := p.AddEntry(storage.Entry{
Type: storage.SegmentType,