diff options
author | Stefan Weil <weil@mail.berlios.de> | 2009-12-14 10:39:12 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-16 18:25:07 +0100 |
commit | 5a2b3fc5aaae48859e09a8d96f4f92578b060892 (patch) | |
tree | 01d7d46ede39ec401fe875dbfaa006a55e5309da /hw | |
parent | 73642f5bdb71f478f221593ec7b06c974a2cb5b6 (diff) | |
download | qemu-5a2b3fc5aaae48859e09a8d96f4f92578b060892.tar.gz qemu-5a2b3fc5aaae48859e09a8d96f4f92578b060892.tar.bz2 qemu-5a2b3fc5aaae48859e09a8d96f4f92578b060892.zip |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/s390-virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index b56788652e..b57fa9c2f8 100644 --- a/hw/s390-virtio.c +++ b/hw/s390-virtio.c @@ -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")) { |