diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-16 23:16:40 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-17 11:32:11 +0100 |
commit | 4212636763af87102aee6dc2d57aa6cb613991a4 (patch) | |
tree | 25d4cccb61bd8e6eb6208bb7a08b996c92ac2ac6 | |
parent | tree-wide: port over various pieces of code to strv_extend_many() (diff) | |
download | systemd-4212636763af87102aee6dc2d57aa6cb613991a4.tar.xz systemd-4212636763af87102aee6dc2d57aa6cb613991a4.zip |
dbus-unit: don't eat up error codes needlessly
-rw-r--r-- | src/core/dbus-unit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 3aeb85e452..7aa44b2393 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -2271,7 +2271,9 @@ static int bus_unit_set_transient_property( u->documentation = strv_free(u->documentation); unit_write_settingf(u, flags, name, "%s=", name); } else { - strv_extend_strv(&u->documentation, l, false); + r = strv_extend_strv(&u->documentation, l, /* filter_duplicates= */ false); + if (r < 0) + return r; STRV_FOREACH(p, l) unit_write_settingf(u, flags, name, "%s=%s", name, *p); |