diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-04-23 21:48:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-04-24 16:58:12 +0200 |
commit | 1a6dceeca218e46478aeb53ea217b1c436289a09 (patch) | |
tree | 0da732dc237aef393f06e211efd77f7a000113f4 /src/core/manager-serialize.c | |
parent | manager: use proper unicode arrow in dump (diff) | |
download | systemd-1a6dceeca218e46478aeb53ea217b1c436289a09.tar.xz systemd-1a6dceeca218e46478aeb53ea217b1c436289a09.zip |
manager: use startswith() return value
Diffstat (limited to '')
-rw-r--r-- | src/core/manager-serialize.c | 6 |
1 files 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; |