am 8264afb3: VersionTracker: Ignore libraries without soname

* commit '8264afb37778bea2a3c6e9aa7144f4877401c3f8':
  VersionTracker: Ignore libraries without soname
This commit is contained in:
Dmitriy Ivanov
2015-05-06 19:29:32 +00:00
committed by Android Git Automerger

View File

@@ -1686,7 +1686,7 @@ bool VersionTracker::init_verneed(const soinfo* si_from) {
const char* target_soname = si_from->get_string(verneed->vn_file); const char* target_soname = si_from->get_string(verneed->vn_file);
// find it in dependencies // find it in dependencies
soinfo* target_si = si_from->get_children().find_if([&](const soinfo* si) { soinfo* target_si = si_from->get_children().find_if([&](const soinfo* si) {
return strcmp(si->get_soname(), target_soname) == 0; return si->get_soname() != nullptr && strcmp(si->get_soname(), target_soname) == 0;
}); });
if (target_si == nullptr) { if (target_si == nullptr) {