projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d3783
)
coredump: drop 2 useless assertions
author
Franck Bui
<fbui@suse.com>
Tue, 25 Jun 2019 12:08:16 +0000
(14:08 +0200)
committer
Franck Bui
<fbui@suse.com>
Thu, 27 Jun 2019 17:01:32 +0000
(19:01 +0200)
src/coredump/coredump.c
patch
|
blob
|
history
diff --git
a/src/coredump/coredump.c
b/src/coredump/coredump.c
index
6a6c119
..
1a5a2dc
100644
(file)
--- 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) {