summaryrefslogtreecommitdiff
path: root/src/core/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-02 00:15:13 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-02 13:23:03 +0100
commit230314d718cb68b328961c9723976e54c17d06f7 (patch)
tree57cce1396ad61174a46bb0563edbed56469fd0a8 /src/core/dbus.c
parentc09da72900b03fcddade06643f24c6357f3e0482 (diff)
core: OOM really shouldn't be considered a deserialization parse failure
Diffstat (limited to 'src/core/dbus.c')
-rw-r--r--src/core/dbus.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c
index 79cf414eee..87da9335a8 100644
--- a/src/core/dbus.c
+++ b/src/core/dbus.c
@@ -1144,15 +1144,20 @@ void bus_track_serialize(sd_bus_track *t, FILE *f) {
int bus_track_deserialize_item(char ***l, const char *line) {
const char *e;
+ int r;
assert(l);
assert(line);
e = startswith(line, "subscribed=");
if (!e)
- return -EINVAL;
+ return 0;
+
+ r = strv_extend(l, e);
+ if (r < 0)
+ return r;
- return strv_extend(l, e);
+ return 1;
}
int bus_track_coldplug(Manager *m, sd_bus_track **t, char ***l) {