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--;
m = hashmap_get(c->matches, normalized);
if (!m) {
- r = sd_bus_error_setf(error, SD_BUS_ERROR_MATCH_RULE_NOT_FOUND, "Match rule \"%s\" not found.");
+ r = sd_bus_error_setf(error, SD_BUS_ERROR_MATCH_RULE_NOT_FOUND, "Match rule \"%s\" not found.", normalized);
goto finish;
}