From 4198061534a5e7b4f3f03201302c7c0368eb0ba0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 21 Feb 2020 16:16:23 +0100 Subject: [PATCH] LibELF: Use the ELF_STRTAB string constant instead of hard-coding --- Libraries/LibELF/ELFImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibELF/ELFImage.cpp b/Libraries/LibELF/ELFImage.cpp index 9f967d1fcc..7627422510 100644 --- a/Libraries/LibELF/ELFImage.cpp +++ b/Libraries/LibELF/ELFImage.cpp @@ -147,7 +147,7 @@ bool ELFImage::parse() m_symbol_table_section_index = i; } if (sh.sh_type == SHT_STRTAB && i != header().e_shstrndx) { - if (StringView(".strtab") == section_header_table_string(sh.sh_name)) + if (section_header_table_string(sh.sh_name) == ELF_STRTAB) m_string_table_section_index = i; } }