coredump: drop 2 useless assertions
authorFranck Bui <fbui@suse.com>
Tue, 25 Jun 2019 12:08:16 +0000 (14:08 +0200)
committerFranck Bui <fbui@suse.com>
Thu, 27 Jun 2019 17:01:32 +0000 (19:01 +0200)
src/coredump/coredump.c

index 6a6c119..1a5a2dc 100644 (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) {