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,