mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
coredumpctl: in case of error free pattern after print
(cherry picked from commit cf50a55277)
This commit is contained in:
committed by
Colin Guthrie
parent
9425c5d144
commit
e3d3ab4650
@@ -126,10 +126,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