Revision 7267c094 hw/ide/qdev.c

b/hw/ide/qdev.c
148 148
    }
149 149

  
150 150
    if (!dev->version) {
151
        dev->version = qemu_strdup(s->version);
151
        dev->version = g_strdup(s->version);
152 152
    }
153 153
    if (!dev->serial) {
154
        dev->serial = qemu_strdup(s->drive_serial_str);
154
        dev->serial = g_strdup(s->drive_serial_str);
155 155
    }
156 156

  
157 157
    add_boot_device_path(dev->conf.bootindex, &dev->qdev,

Also available in: Unified diff