fixed uninit memory
This commit is contained in:
@@ -1963,6 +1963,7 @@ nn_Component *ncl_createEEPROM(nn_Universe *universe, const char *address, const
|
|||||||
state->ctx = ctx;
|
state->ctx = ctx;
|
||||||
state->lock = lock;
|
state->lock = lock;
|
||||||
state->usage = 0;
|
state->usage = 0;
|
||||||
|
state->isReadonly = false;
|
||||||
state->code = codebuf;
|
state->code = codebuf;
|
||||||
state->codelen = codelen;
|
state->codelen = codelen;
|
||||||
memcpy(state->code, code, codelen);
|
memcpy(state->code, code, codelen);
|
||||||
|
|||||||
Reference in New Issue
Block a user