Cortex: initialize the log message

GCC 13 warns that the item could be initialized. From looking at the code, it
could very well be that the log message contained garbage. At least clear the
data before sending it out.

Change-Id: Id02bf314d0c02f852748bdac9cef010ebf073994
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6654
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Niels Sascha Reedijk
2023-06-30 00:30:58 +00:00
committed by waddlesplash
parent 5d39116f10
commit 0a8972bbea
@@ -136,7 +136,7 @@ LogWriter::~LogWriter()
{
printf("LogWriter::~LogWriter() called\n");
status_t err;
log_message msg;
log_message msg = {};
Log(LOG_QUIT, msg);
::wait_for_thread(mLogThread, &err);