We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bdbc77 commit 2bdbf3fCopy full SHA for 2bdbf3f
ttyd-tools/elf2rel/elf2rel.cpp
@@ -20,7 +20,7 @@ std::map<std::string, uint32_t> loadSymbolMap(const std::string &filename)
20
boost::trim_left(line);
21
22
// Ignore comments
23
- if (line.find_first_of("//") == line.npos)
+ if (line.size() == 0 || line.find_first_of("//") == 0)
24
{
25
continue;
26
}
0 commit comments