Skip to content
Snippets Groups Projects
Commit 543431e2 authored by graham sanderson's avatar graham sanderson
Browse files

initialization of single field in struct was causing memset of whole struct

parent d1e7294d
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,8 @@ int WRAPPER_FUNC(vprintf)(const char *format, va_list va) {
}
int ret;
#if LIB_PICO_PRINTF_PICO
struct stdio_stack_buffer buffer = {.used = 0};
struct stdio_stack_buffer buffer;
buffer.used = 0;
ret = vfctprintf(stdio_buffered_printer, &buffer, format, va);
stdio_stack_buffer_flush(&buffer);
stdio_flush();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment