From d8770e95d42162871869a2b51abd8ea0bc406a9a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 8 May 2018 08:18:18 +0200 Subject: [PATCH] bug fix --- lib/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/path.c b/lib/path.c index 9edb4aadb..0c5f21d65 100644 --- a/lib/path.c +++ b/lib/path.c @@ -676,7 +676,7 @@ int path_start(struct path *p) * does not offer a file descriptor for polling, we will use a special * thread function. */ - struct path_source *ps0 = (struct path_source *) list_at(&p->sources, 0); + struct path_source *ps = (struct path_source *) list_at(&p->sources, 0); if (list_length(&p->sources) == 1 && node_fd(ps->node) == -1) ret = pthread_create(&p->tid, NULL, &path_run_single, p); else