libxl: always set a default value for VFB.opengl

Fixes an assertion failure.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reported-by: Fantu <fantonifabio@tiscali.it>
Tested-by: Fantu <fantonifabio@tiscali.it>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2012-03-13 17:06:36 +00:00
1 parent ce3878f59e
commit 989794ea65
1 file changed
+1 -3
+1 -3
View File
@@ -2256,9 +2256,7 @@ int libxl__device_vfb_setdefault(libxl__gc *gc, libxl_device_vfb *vfb)
}
libxl_defbool_setdefault(&vfb->sdl.enable, false);
if (libxl_defbool_val(vfb->sdl.enable)) {
libxl_defbool_setdefault(&vfb->sdl.opengl, false);
}
libxl_defbool_setdefault(&vfb->sdl.opengl, false);
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.