From d7deec431851a8d4ca31b75bd1d2856ca92eeff3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 4 Jul 2020 15:38:17 +0200 Subject: [PATCH] path: fix check --- lib/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/path.cpp b/lib/path.cpp index f48d34ec3..ea2807f34 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -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;