Don't use assert_runtime() when we get an invalid match string, since
that's a runtime error:
$ SYSTEMD_LOG_LEVEL=debug coredumpctl info =
...
Adding match: =
Assertion 'match_is_valid(data, size)' failed at src/libsystemd/sd-journal/sd-journal.c:240, function sd_journal_add_match(). Ignoring.
Failed to add match "=": Invalid argument
if (size == 0)
size = strlen(data);
- assert_return(match_is_valid(data, size), -EINVAL);
+ if (!match_is_valid(data, size))
+ return -EINVAL;
/* level 0: AND term
* level 1: OR terms