1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix assertion in _init() about invalid state

This commit is contained in:
Steffen Vogel 2018-12-02 03:03:03 +01:00
parent a63b15609a
commit 71c6d5f9e5
2 changed files with 9 additions and 3 deletions

View file

@ -54,6 +54,10 @@ SuperNode::SuperNode() :
web(&api),
json(nullptr)
{
nodes.state = STATE_DESTROYED;
paths.state = STATE_DESTROYED;
plugins.state = STATE_DESTROYED;
list_init(&nodes);
list_init(&paths);
list_init(&plugins);

View file

@ -171,11 +171,13 @@ int main(int argc, char *argv[])
const char *format = "villas.human"; /** @todo hardcoded for now */
struct node n;
struct io io;
struct pool q;
struct node n = { .state = STATE_DESTROYED };
struct io io = { .state = STATE_DESTROYED };
struct pool q = { .state = STATE_DESTROYED };
struct sample *t;
q.queue.state = STATE_DESTROYED;
Logger logger = logging.get("signal");
ret = utils::signals_init(quit);