From de5e603248a162f2c51c87b4e3899bdeb78d53d0 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 6 Apr 2021 02:52:54 +0300 Subject: [PATCH] builtin: fix a warning in backtrace() on windows (msvc) --- vlib/builtin/builtin_windows.c.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/builtin/builtin_windows.c.v b/vlib/builtin/builtin_windows.c.v index 950f96cad8..90ad590f77 100644 --- a/vlib/builtin/builtin_windows.c.v +++ b/vlib/builtin/builtin_windows.c.v @@ -115,7 +115,9 @@ fn print_backtrace_skipping_top_frames_msvc(skipframes int) bool { si.f_size_of_struct = sizeof(SymbolInfo) // Note: C.SYMBOL_INFO is 88 si.f_max_name_len = sizeof(SymbolInfoContainer) - sizeof(SymbolInfo) - 1 fname := &char(&si.f_name) - mut sline64 := Line64{} + mut sline64 := Line64{ + f_file_name: &byte(0) + } sline64.f_size_of_struct = sizeof(Line64) handle := C.GetCurrentProcess()