diff --git a/src/debug/debug_stream/debug_stream_slot.c b/src/debug/debug_stream/debug_stream_slot.c index 3e95eae0edb2..dc0055208161 100644 --- a/src/debug/debug_stream/debug_stream_slot.c +++ b/src/debug/debug_stream/debug_stream_slot.c @@ -32,7 +32,6 @@ struct debug_stream_circular_buf * debug_stream_get_circular_buffer(struct debug_stream_section_descriptor *desc, unsigned int core) { struct debug_stream_slot_hdr *hdr = debug_stream_get_slot(); - void *ptr; if (hdr->hdr.magic != DEBUG_STREAM_IDENTIFIER) { LOG_ERR("Debug stream slot not initialized."); @@ -47,7 +46,7 @@ debug_stream_get_circular_buffer(struct debug_stream_section_descriptor *desc, u int debug_stream_slot_send_record(struct debug_stream_record *rec) { - struct debug_stream_section_descriptor desc; + struct debug_stream_section_descriptor desc = { 0 }; struct debug_stream_circular_buf *buf = debug_stream_get_circular_buffer(&desc, arch_proc_id()); uint32_t record_size = rec->size_words;