mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
manager: use startswith() return value
This commit is contained in:
parent
3a7bb5c99c
commit
1a6dceeca2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user