1
0
mirror of https://github.com/ostreedev/ostree-go.git synced 2026-02-05 06:47:23 +01:00

Handle being called with a nil *GVariant

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
This commit is contained in:
Sjoerd Simons
2017-07-27 11:37:41 +02:00
committed by Ed Smith
parent 2ca91aaf92
commit f2a30ae984

View File

@@ -56,6 +56,9 @@ func (v *GVariant) native() *C.GVariant {
}
func (v *GVariant) Ptr() unsafe.Pointer {
if v == nil {
return nil
}
return v.ptr
}