[systemd-commits] src/bus-driverd

Kay Sievers kay at kemper.freedesktop.org
Sat Jan 4 23:36:49 PST 2014


 src/bus-driverd/bus-driverd.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 215c7625dd510759290d45d6c46434e4338843ec
Author: Marc-Antoine Perennou <Marc-Antoine at Perennou.com>
Date:   Sat Dec 28 13:54:18 2013 +0900

    bus: driverd: don't attempt to remove from empty list

diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 44172c4..f8a123d 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);
-                LIST_REMOVE(matches, first, m);
-                if (first)
+                if (first) {
+                        LIST_REMOVE(matches, first, m);
                         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