From 569319d3970c2e94e4c6586d4bb17e5cfc108fdf Mon Sep 17 00:00:00 2001 From: Ashley Cui Date: Mon, 28 Feb 2022 16:23:19 -0500 Subject: Vendor in containers/common@main Signed-off-by: Ashley Cui --- vendor/github.com/ostreedev/ostree-go/pkg/glibobject/gvariant.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/github.com/ostreedev') diff --git a/vendor/github.com/ostreedev/ostree-go/pkg/glibobject/gvariant.go b/vendor/github.com/ostreedev/ostree-go/pkg/glibobject/gvariant.go index 30572ea87..6a6acfd9a 100644 --- a/vendor/github.com/ostreedev/ostree-go/pkg/glibobject/gvariant.go +++ b/vendor/github.com/ostreedev/ostree-go/pkg/glibobject/gvariant.go @@ -56,6 +56,9 @@ func (v *GVariant) native() *C.GVariant { } func (v *GVariant) Ptr() unsafe.Pointer { + if v == nil { + return nil + } return v.ptr } -- cgit v1.2.3-54-g00ecf