summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/crash_handler_linuxbsd.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-05 11:42:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-05 11:42:47 +0200
commit5b6ccf2fd2c0e01481bad47d4403e7173476bfe2 (patch)
tree9b12a6a603d21f6e0feee43a7c06f031e0fd284d /platform/linuxbsd/crash_handler_linuxbsd.cpp
parent33f4c5282f3f6f64cd97c30978d130b6efbc94ce (diff)
parent2233624152a3b041daeab8b0fd88a2061b7b8565 (diff)
Merge pull request #66720 from qarmin/unintialized_memory
Remove usage of unitialized variables
Diffstat (limited to 'platform/linuxbsd/crash_handler_linuxbsd.cpp')
-rw-r--r--platform/linuxbsd/crash_handler_linuxbsd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/crash_handler_linuxbsd.cpp b/platform/linuxbsd/crash_handler_linuxbsd.cpp
index 33da094860..8c8c8588b8 100644
--- a/platform/linuxbsd/crash_handler_linuxbsd.cpp
+++ b/platform/linuxbsd/crash_handler_linuxbsd.cpp
@@ -89,7 +89,7 @@ static void handle_crash(int sig) {
// Try to demangle the function name to provide a more readable one
if (dladdr(bt_buffer[i], &info) && info.dli_sname) {
if (info.dli_sname[0] == '_') {
- int status;
+ int status = 0;
char *demangled = abi::__cxa_demangle(info.dli_sname, nullptr, nullptr, &status);
if (status == 0 && demangled) {