summaryrefslogtreecommitdiff
path: root/libunwindstack/tools/unwind_info.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-03-14 15:40:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-14 15:40:59 +0000
commit4886a5bd5942275c20fa95df3ccb03e70a97328c (patch)
tree8c40e397a05578712906cb0e546a77d9799f0dd1 /libunwindstack/tools/unwind_info.cpp
parentff3c13f52f1d223a4aa2904234867e6199643766 (diff)
parent02a6c448c32c37aae834bc25e92db97bfac32524 (diff)
Merge "Add support for displaying soname in an apk."
Diffstat (limited to 'libunwindstack/tools/unwind_info.cpp')
-rw-r--r--libunwindstack/tools/unwind_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/tools/unwind_info.cpp b/libunwindstack/tools/unwind_info.cpp
index 19982d8f6..92e5c0af3 100644
--- a/libunwindstack/tools/unwind_info.cpp
+++ b/libunwindstack/tools/unwind_info.cpp
@@ -118,8 +118,8 @@ int GetElfInfo(const char* file, uint64_t offset) {
return 1;
}
- std::string soname;
- if (elf.GetSoname(&soname)) {
+ std::string soname(elf.GetSoname());
+ if (!soname.empty()) {
printf("Soname: %s\n", soname.c_str());
}