diff options
Diffstat (limited to 'Libraries/LibDebug/Dwarf/LineProgram.cpp')
-rw-r--r-- | Libraries/LibDebug/Dwarf/LineProgram.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibDebug/Dwarf/LineProgram.cpp b/Libraries/LibDebug/Dwarf/LineProgram.cpp index 28ed26d8ee..99a5fb7136 100644 --- a/Libraries/LibDebug/Dwarf/LineProgram.cpp +++ b/Libraries/LibDebug/Dwarf/LineProgram.cpp @@ -56,8 +56,9 @@ void LineProgram::parse_source_directories() { m_source_directories.append("."); - String directory; - while (m_stream >> directory) { + while (m_stream.peek_or_error()) { + String directory; + m_stream >> directory; #ifdef DWARF_DEBUG dbg() << "directory: " << directory; #endif |