[libvirt] [PATCH] libxl: initialize allocated libxl_device_vfb array

17 Apr
2015
17 Apr
'15
1:23 p.m.
Its already allocated by calloc, but the init function sets ->devid. Just in case anything cares. Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Jim Fehlig <jfehlig@suse.com> --- src/libxl/libxl_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 6feb7d9..8b76fc7 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -1288,6 +1288,7 @@ libxlMakeVfbList(virPortAllocatorPtr graphicsports, } for (i = 0; i < nvfbs; i++) { + libxl_device_vfb_init(&x_vfbs[i]); libxl_device_vkb_init(&x_vkbs[i]); if (libxlMakeVfb(graphicsports, l_vfbs[i], &x_vfbs[i]) < 0)
3802
Age (days ago)
3802
Last active (days ago)
1 comments
1 participants
participants (1)
-
Olaf Hering