summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-06-25 14:08:16 +0200
committerFranck Bui <fbui@suse.com>2019-06-27 19:01:32 +0200
commit554c76b6625f390f7d33bc1edf037540653db773 (patch)
tree91cb4ae8b4b23d478df95c5b47d9e270887a10e6 /src/coredump
parentcoredump: slighlty simplify stack trace generation logic (diff)
downloadsystemd-554c76b6625f390f7d33bc1edf037540653db773.tar.xz
systemd-554c76b6625f390f7d33bc1edf037540653db773.zip
coredump: drop 2 useless assertions
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 6a6c11971e..1a5a2dc81d 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -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) {