--- src/qxl_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 8e19bb8..360a245 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -2544,9 +2544,10 @@ qxl_identify (int flags) static void qxl_init_scrn (ScrnInfoPtr pScrn) { + static char driver_name[] = QXL_DRIVER_NAME; pScrn->driverVersion = 0; - pScrn->driverName = QXL_DRIVER_NAME; - pScrn->name = QXL_DRIVER_NAME; + pScrn->driverName = driver_name; + pScrn->name = driver_name; pScrn->PreInit = qxl_pre_init; pScrn->ScreenInit = qxl_screen_init; pScrn->SwitchMode = qxl_switch_mode;
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel