1
0
Fork 0
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:
Steffen Vogel 2020-07-05 13:23:14 +01:00 committed by Steffen Vogel
parent a1d9fca94b
commit 6d2990ade5

View file

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