maybe one other thing we should do to reset backupmem

This commit is contained in:
zeromus 2009-05-03 18:39:32 +00:00
parent e9708f7595
commit dc28399028
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ u8 *mc_alloc(memory_chip_t *mc, u32 size)
{ {
u8 *buffer; u8 *buffer;
buffer = new u8[size]; buffer = new u8[size];
memset(buffer,0,size);
mc->data = buffer; mc->data = buffer;
if(!buffer) { return NULL; } if(!buffer) { return NULL; }