Skip to content

Commit a8d8c58

Browse files
committed
[NFC][sanitizer] Remove temp buffer
1 parent 4a37487 commit a8d8c58

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,8 @@ static int dl_iterate_phdr_cb(dl_phdr_info *info, size_t size, void *arg) {
698698
return AddModuleSegments(module_name.data(), info, data->modules);
699699
}
700700

701-
if (info->dlpi_name) {
702-
InternalScopedString module_name;
703-
module_name.AppendF("%s", info->dlpi_name);
704-
return AddModuleSegments(module_name.data(), info, data->modules);
705-
}
701+
if (info->dlpi_name)
702+
return AddModuleSegments(info->dlpi_name, info, data->modules);
706703

707704
return 0;
708705
}

0 commit comments

Comments
 (0)