mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
s390: Fix buggy assignment
nd->model keeps dynamically allocated model names. So casting of a constant string is wrong here. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
committed by
Aurelien Jarno
parent
73642f5bdb
commit
5a2b3fc5aa
+1
-1
@@ -209,7 +209,7 @@ static void s390_init(ram_addr_t ram_size,
|
||||
DeviceState *dev;
|
||||
|
||||
if (!nd->model) {
|
||||
nd->model = (char*)"virtio";
|
||||
nd->model = qemu_strdup("virtio");
|
||||
}
|
||||
|
||||
if (strcmp(nd->model, "virtio")) {
|
||||
|
||||
Reference in New Issue
Block a user