summaryrefslogtreecommitdiff
path: root/vendor/github.com/godbus/dbus/v5/dbus.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-02 14:31:09 +0200
committerGitHub <noreply@github.com>2021-04-02 14:31:09 +0200
commit203e464f93e2ca7054b58e2aabc13afa6dec4a8c (patch)
treef7427403d0fa4938fc519a4f0a68251e49c0ee82 /vendor/github.com/godbus/dbus/v5/dbus.go
parent23ee8b1df1f70aaad4fc4bc9c0c6b17f7aae5c8a (diff)
parent5a7a1a1673c3735033a7d27d26b96c8d3eb9a14c (diff)
downloadpodman-203e464f93e2ca7054b58e2aabc13afa6dec4a8c.tar.gz
podman-203e464f93e2ca7054b58e2aabc13afa6dec4a8c.tar.bz2
podman-203e464f93e2ca7054b58e2aabc13afa6dec4a8c.zip
Merge pull request #9925 from containers/dependabot/go_modules/github.com/coreos/go-systemd/v22-22.3.1
Bump github.com/coreos/go-systemd/v22 from 22.3.0 to 22.3.1
Diffstat (limited to 'vendor/github.com/godbus/dbus/v5/dbus.go')
-rw-r--r--vendor/github.com/godbus/dbus/v5/dbus.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/godbus/dbus/v5/dbus.go b/vendor/github.com/godbus/dbus/v5/dbus.go
index 428923d26..ddf3b7afd 100644
--- a/vendor/github.com/godbus/dbus/v5/dbus.go
+++ b/vendor/github.com/godbus/dbus/v5/dbus.go
@@ -28,6 +28,7 @@ var (
interfaceType = reflect.TypeOf((*interface{})(nil)).Elem()
unixFDType = reflect.TypeOf(UnixFD(0))
unixFDIndexType = reflect.TypeOf(UnixFDIndex(0))
+ errType = reflect.TypeOf((*error)(nil)).Elem()
)
// An InvalidTypeError signals that a value which cannot be represented in the
@@ -63,6 +64,9 @@ func storeInterfaces(src, dest interface{}) error {
func store(dest, src reflect.Value) error {
if dest.Kind() == reflect.Ptr {
+ if dest.IsNil() {
+ dest.Set(reflect.New(dest.Type().Elem()))
+ }
return store(dest.Elem(), src)
}
switch src.Kind() {