locking: sanlock: Avoid use of VIR_ALLOC_VAR for 'struct sanlk_resource'
locking: sanlock: Avoid use of VIR_ALLOC_VAR for 'struct sanlk_resource'

In both cases we need memory for a 'struct sanlk_resource' followed by
one 'struct sanlk_disk', thus there's no risk of overflow.

Use g_malloc0 and sizeof() to allocate the memory instead of
VIR_ALLOC_VAR.

Signed-off-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

libvirt/libvirt,jfehlig/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,libvirt/libvirt,nertpinx/libvirt,nertpinx/libvirt,olafhering/libvirt,zippy2/libvirt,olafhering/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,crobinso/libvirt,crobinso/libvirt,jfehlig/libvirt,libvirt/libvirt,jfehlig/libvirt,crobinso/libvirt,nertpinx/libvirt