maybe one other thing we should do to reset backupmem
This commit is contained in:
parent
e9708f7595
commit
dc28399028
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue