Revision 7267c094 hw/ds1225y.c
b/hw/ds1225y.c | ||
---|---|---|
146 | 146 |
QEMUFile *file; |
147 | 147 |
int s_io; |
148 | 148 |
|
149 |
s->contents = qemu_mallocz(s->chip_size);
|
|
149 |
s->contents = g_malloc0(s->chip_size);
|
|
150 | 150 |
|
151 | 151 |
s_io = cpu_register_io_memory(nvram_read, nvram_write, s, |
152 | 152 |
DEVICE_NATIVE_ENDIAN); |
Also available in: Unified diff