diff --git a/src/opt/opt_parse.cpp b/src/opt/opt_parse.cpp index 29e8a604c..78ce8bd85 100644 --- a/src/opt/opt_parse.cpp +++ b/src/opt/opt_parse.cpp @@ -69,7 +69,7 @@ public: bool opt_stream_buffer::parse_token(char const* token) { skip_whitespace(); char const* t = token; - while (ch() == *t) { + while (*t && ch() == *t) { next(); ++t; }