dirwatch: fix panic when attemting to copy func into [20]byte
This commit is contained in:
parent
debcb10b08
commit
6525cf19f6
|
@ -69,7 +69,7 @@ func torrentFileInfoHash(fileName string) (ih metainfo.Hash, ok bool) {
|
||||||
if mi == nil {
|
if mi == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
missinggo.CopyExact(ih[:], mi.Info.Hash)
|
ih = mi.Info.Hash()
|
||||||
ok = true
|
ok = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue