mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00:00
coredumpctl: in case of error free pattern after print
(cherry picked from commitcf50a55277) (cherry picked from commite3d3ab4650)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
a739675c3c
commit
5a27f883fb
@@ -125,10 +125,11 @@ static int add_match(Set *set, const char *match) {
|
||||
goto fail;
|
||||
|
||||
log_debug("Adding pattern: %s", pattern);
|
||||
r = set_consume(set, pattern);
|
||||
r = set_put(set, pattern);
|
||||
if (r < 0) {
|
||||
log_error("Failed to add pattern '%s': %s",
|
||||
pattern, strerror(-r));
|
||||
free(pattern);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user