[systemd-commits] src/bus-driverd
Kay Sievers
kay at kemper.freedesktop.org
Sun Jan 5 06:55:33 PST 2014
src/bus-driverd/bus-driverd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4bf7665c760bdd011cee3c5a9b03c8e109991241
Author: Kay Sievers <kay at vrfy.org>
Date: Sun Jan 5 18:53:39 2014 +0400
Revert "bus: driverd: don't attempt to remove from empty list"
We need to find the real reason for the failure, this just
avoids the symptoms.
This reverts commit 215c7625dd510759290d45d6c46434e4338843ec.
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index f8a123d..44172c4 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -90,10 +90,10 @@ static void match_free(Match *m) {
Match *first;
first = hashmap_get(m->client->matches, m->match);
- if (first) {
- LIST_REMOVE(matches, first, m);
+ LIST_REMOVE(matches, first, m);
+ if (first)
assert_se(hashmap_replace(m->client->matches, m->match, first) >= 0);
- } else
+ else
hashmap_remove(m->client->matches, m->match);
m->client->n_matches--;
More information about the systemd-commits
mailing list