From 0c905ff5a240110bc8b8208843a23985c5380166 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 15 Nov 2016 23:17:28 +0300 Subject: [PATCH] Fix win build (2) --- include/boost/stacktrace/detail/backtrace_holder_windows.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/stacktrace/detail/backtrace_holder_windows.hpp b/include/boost/stacktrace/detail/backtrace_holder_windows.hpp index 533dbe5..7f1ded3 100644 --- a/include/boost/stacktrace/detail/backtrace_holder_windows.hpp +++ b/include/boost/stacktrace/detail/backtrace_holder_windows.hpp @@ -122,7 +122,7 @@ struct backtrace_holder { inline std::string get_frame(std::size_t frame) const { std::string result; if (frame >= frames_count) { - return res; + return result; } com_holder idebug_; @@ -132,7 +132,7 @@ struct backtrace_holder { ULONG64 offset = reinterpret_cast(buffer[frame]); char name[256]; - name[0] = 0; + name[0] = '\0'; PULONG size = 0; bool res = (S_OK == idebug_->GetNameByOffset( offset,