OSDN Git Service

Fix uninitialized variable usage.
authorChristopher Ferris <cferris@google.com>
Tue, 15 Nov 2016 22:04:16 +0000 (14:04 -0800)
committerChristopher Ferris <cferris@google.com>
Wed, 16 Nov 2016 19:23:52 +0000 (11:23 -0800)
commitb7f0267f0ddfa2d2ffb71a7980e80b05961401d0
tree698798273ae116c54d45763ec3dbdfe46f5b97b7
parentdd0155f7d4853583d8d87d734908052235078311
Fix uninitialized variable usage.

If the dladdr call fails, then info.dli_fname will be unitialized.
Make sure that this can't happen.

Bug: 32907235

Test: Enabled malloc debug on an angler and verified that function names
Test: still work.
Change-Id: I738e66d9f37bce07bc4c10f1f9bac11fbfdae2c7
(cherry picked from commit a19bc2d4edfc261bdccfc5f855c50e83477b3757)
libc/malloc_debug/backtrace.cpp