fixed uninit memory

This commit is contained in:
2026-05-01 18:09:16 +03:00
parent 45ec779d4d
commit d1e2f6c770

View File

@@ -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);