coredump: drop 2 useless assertions

This commit is contained in:
Franck Bui
2019-06-27 19:01:32 +02:00
parent 51d3783d87
commit 554c76b662
-3
View File
@@ -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) {