rpc: fix panic when parsing filesystem response
This commit is contained in:
+1
-1
@@ -245,7 +245,7 @@ func (c ByteStreamRPC) FilesystemRequest(r FilesystemRequest) (roots []Filesyste
|
|||||||
|
|
||||||
roots = make([]Filesystem, 0)
|
roots = make([]Filesystem, 0)
|
||||||
|
|
||||||
if err = c.decoder.Decode(roots); err != nil {
|
if err = c.decoder.Decode(&roots); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user