From cc232fa09407eb027db6a3a28451c25dad3ef7aa Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 12 Aug 2022 16:13:05 +0200 Subject: basic: Use statement expressions more in list.h Let's use statement expressions to return values instead of passing in return arguments to the LIST macros. --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/execute.c') diff --git a/src/core/execute.c b/src/core/execute.c index 439f491d02..94c0e6a90d 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -6491,7 +6491,7 @@ void exec_command_append_list(ExecCommand **l, ExecCommand *e) { if (*l) { /* It's kind of important, that we keep the order here */ - LIST_FIND_TAIL(command, *l, end); + end = LIST_FIND_TAIL(command, *l); LIST_INSERT_AFTER(command, *l, end, e); } else *l = e; -- cgit v1.2.1