mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
hook: initialize signals with an empty list
This created issues when using hooks without a SuperNode. Some code assumes signals != nullptr. Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
45307bcc16
commit
bc2319771b
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <villas/node/config.hpp>
|
||||
#include <villas/node/exceptions.hpp>
|
||||
#include <villas/path.hpp>
|
||||
#include <villas/signal_list.hpp>
|
||||
#include <villas/timing.hpp>
|
||||
#include <villas/utils.hpp>
|
||||
|
||||
|
@ -26,7 +27,7 @@ Hook::Hook(Path *p, Node *n, int fl, int prio, bool en)
|
|||
? State::CHECKED
|
||||
: State::INITIALIZED), // We dont need to parse builtin hooks
|
||||
flags(fl), priority(prio), enabled(en), path(p), node(n),
|
||||
config(nullptr) {}
|
||||
signals(std::make_shared<SignalList>()), config(nullptr) {}
|
||||
|
||||
void Hook::prepare(SignalList::Ptr sigs) {
|
||||
assert(state == State::CHECKED);
|
||||
|
|
Loading…
Add table
Reference in a new issue