summaryrefslogtreecommitdiff
path: root/libunwindstack/tools/unwind_symbols.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_symbols.cpp
parentff3c13f52f1d223a4aa2904234867e6199643766 (diff)
parent02a6c448c32c37aae834bc25e92db97bfac32524 (diff)
Merge "Add support for displaying soname in an apk."
Diffstat (limited to 'libunwindstack/tools/unwind_symbols.cpp')
-rw-r--r--libunwindstack/tools/unwind_symbols.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/tools/unwind_symbols.cpp b/libunwindstack/tools/unwind_symbols.cpp
index 91284307e..b0a4dd07a 100644
--- a/libunwindstack/tools/unwind_symbols.cpp
+++ b/libunwindstack/tools/unwind_symbols.cpp
@@ -71,8 +71,8 @@ int main(int argc, char** argv) {
return 1;
}
- std::string soname;
- if (elf.GetSoname(&soname)) {
+ std::string soname(elf.GetSoname());
+ if (!soname.empty()) {
printf("Soname: %s\n\n", soname.c_str());
}