coredumpctl: fix assertion

The field is not checked by journald. Hence, the value may be missing.
An empty value will be refused by path_is_absolute() in the below.
This commit is contained in:
Yu Watanabe
2026-08-26 02:10:56 +09:00
parent 063d7b451d
commit 6f8b23398c
+1 -1
View File
@@ -71,7 +71,7 @@ int verb_run_debug(int argc, char *argv[], uintptr_t _data, void *userdata) {
if (r < 0)
return log_error_errno(r, "Failed to retrieve COREDUMP_EXE field: %m");
assert(len > STRLEN("COREDUMP_EXE="));
assert(len >= STRLEN("COREDUMP_EXE="));
data += STRLEN("COREDUMP_EXE=");
len -= STRLEN("COREDUMP_EXE=");