commit | bd15515cfc0219963123bcf982782100ad0f6085 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Nov 16 18:59:02 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Nov 16 18:59:02 2016 +0000 |
tree | 2e43343429f3f163eeb134dec8a1d31a069c452a | |
parent | 7afafce8312e97f5f1f2cf99b4641a800055066e [diff] | |
parent | a19bc2d4edfc261bdccfc5f855c50e83477b3757 [diff] |
Merge "Fix uninitialized variable usage."
diff --git a/libc/malloc_debug/backtrace.cpp b/libc/malloc_debug/backtrace.cpp index 18ce8b8..75a255c 100644 --- a/libc/malloc_debug/backtrace.cpp +++ b/libc/malloc_debug/backtrace.cpp
@@ -142,6 +142,8 @@ if (dladdr(reinterpret_cast<void*>(frames[frame_num]), &info) != 0) { offset = reinterpret_cast<uintptr_t>(info.dli_saddr); symbol = info.dli_sname; + } else { + info.dli_fname = nullptr; } uintptr_t rel_pc = offset;