forked from mirrors/tar-split
tar/asm: handle nil tar Header
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
174287a8aa
commit
ed9f97a5a0
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
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{
|
if _, err := p.AddEntry(storage.Entry{
|
||||||
Type: storage.SegmentType,
|
Type: storage.SegmentType,
|
||||||
|
|
Loading…
Reference in a new issue