coredump: drop 2 useless assertions
This commit is contained in:
@@ -784,7 +784,6 @@ log:
|
||||
if (journald_crash) {
|
||||
/* We cannot log to the journal, so just print the message.
|
||||
* The target was set previously to something safe. */
|
||||
assert(startswith(core_message, "MESSAGE="));
|
||||
log_dispatch(LOG_ERR, 0, core_message + strlen("MESSAGE="));
|
||||
return 0;
|
||||
}
|
||||
@@ -893,8 +892,6 @@ static int process_socket(int fd) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
assert(l >= 0);
|
||||
|
||||
iovec[n_iovec].iov_len = l;
|
||||
iovec[n_iovec].iov_base = malloc(l + 1);
|
||||
if (!iovec[n_iovec].iov_base) {
|
||||
|
||||
Reference in New Issue
Block a user