mirror of
https://github.com/restic/restic.git
synced 2026-10-11 20:47:12 +00:00
Update dependencies
This commit is contained in:
1 parent
c7762453cf
commit
ca8c3b4fd5
286 files changed
+28157
-15885
No files matched your search
+4
-1
@@ -79,10 +79,13 @@ func toPointer(i *Message) pointer {
|
||||
|
||||
// toAddrPointer converts an interface to a pointer that points to
|
||||
// the interface data.
|
||||
func toAddrPointer(i *interface{}, isptr bool) pointer {
|
||||
func toAddrPointer(i *interface{}, isptr, deref bool) pointer {
|
||||
v := reflect.ValueOf(*i)
|
||||
u := reflect.New(v.Type())
|
||||
u.Elem().Set(v)
|
||||
if deref {
|
||||
u = u.Elem()
|
||||
}
|
||||
return pointer{v: u}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user