From 1a6dceeca218e46478aeb53ea217b1c436289a09 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 23 Apr 2024 21:48:16 +0200 Subject: manager: use startswith() return value --- src/core/manager-serialize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/manager-serialize.c b/src/core/manager-serialize.c index 3c64755743..bdf336a6de 100644 --- a/src/core/manager-serialize.c +++ b/src/core/manager-serialize.c @@ -447,10 +447,10 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) { if (r < 0) return r; - } else if (startswith(l, "env=")) { - r = deserialize_environment(l + 4, &m->client_environment); + } else if ((val = startswith(l, "env="))) { + r = deserialize_environment(val, &m->client_environment); if (r < 0) - log_notice_errno(r, "Failed to parse environment entry: \"%s\", ignoring: %m", l); + log_notice_errno(r, "Failed to parse environment entry: \"%s\", ignoring: %m", val); } else if ((val = startswith(l, "notify-fd="))) { int fd; -- cgit v1.2.3