Revision 7267c094 hw/m48t59.c
b/hw/m48t59.c | ||
---|---|---|
679 | 679 |
|
680 | 680 |
static void m48t59_init_common(M48t59State *s) |
681 | 681 |
{ |
682 |
s->buffer = qemu_mallocz(s->size);
|
|
682 |
s->buffer = g_malloc0(s->size);
|
|
683 | 683 |
if (s->type == 59) { |
684 | 684 |
s->alrm_timer = qemu_new_timer_ns(vm_clock, &alarm_cb, s); |
685 | 685 |
s->wd_timer = qemu_new_timer_ns(vm_clock, &watchdog_cb, s); |
Also available in: Unified diff