mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
avoid issues with uninitialized memory
This commit is contained in:
parent
a1d9fca94b
commit
6d2990ade5
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ int node_init(struct node *n, struct node_type *vt)
|
|||
if (!n->_vd)
|
||||
throw RuntimeError("Failed to allocate memory");
|
||||
|
||||
memset(n->_vd, 0, vt->size);
|
||||
|
||||
//n->stats = nullptr;
|
||||
n->name = nullptr;
|
||||
n->_name = nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue