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

path: fix check

This commit is contained in:
Steffen Vogel 2020-07-04 15:38:17 +02:00 committed by Steffen Vogel
parent 2c2ef72e9e
commit d7deec4318

View file

@ -403,7 +403,7 @@ int path_parse(struct vpath *p, json_t *cfg, struct vlist *nodes)
for (size_t i = 0; i < vlist_length(&destinations); i++) {
struct node *n = (struct node *) vlist_at(&destinations, i);
if (!n->output_path)
if (n->output_path)
throw ConfigError(cfg, "node-config-path", "Every node must only be used by a single path as destination");
auto *pd = new struct vpath_destination;