From 52e3671bf7e6321c58c6d3a6c8ad8e167259a569 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 14 Aug 2023 16:32:55 +0200 Subject: tree-wide: use LIST_POP() --- src/core/path.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/path.c') diff --git a/src/core/path.c b/src/core/path.c index b06b97d712..d5651cd9d8 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -288,9 +288,8 @@ void path_free_specs(Path *p) { assert(p); - while ((s = p->specs)) { + while ((s = LIST_POP(spec, p->specs))) { path_spec_unwatch(s); - LIST_REMOVE(spec, p->specs, s); path_spec_done(s); free(s); } -- cgit v1.2.3