1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +00:00

Fix panic for nil-pointer dereference

Closes #1755
This commit is contained in:
Alexander Neumann 2018-05-03 20:49:30 +02:00
parent 2a67258867
commit fd77646f8b

View file

@ -104,7 +104,7 @@ func (s *TreeSaver) save(ctx context.Context, snPath string, node *restic.Node,
// return the error if it wasn't ignored // return the error if it wasn't ignored
if fn.err != nil { if fn.err != nil {
debug.Log("err for %v: %v", fn.node.Name, fn.err) debug.Log("err for %v: %v", fn.snPath, fn.err)
fn.err = s.errFn(fn.target, fn.fi, fn.err) fn.err = s.errFn(fn.target, fn.fi, fn.err)
if fn.err == nil { if fn.err == nil {
// ignore error // ignore error