mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer
- ::isPath was not observing the null character string terminator.
This commit is contained in:
parent
d1f7e44811
commit
e11b333a0b
1 changed files with 2 additions and 1 deletions
|
@ -804,7 +804,8 @@ bool Lexer::isPath (std::string& token, Lexer::Type& type)
|
|||
_text[marker] != '/')
|
||||
{
|
||||
utf8_next_char (_text, marker);
|
||||
while (! isWhitespace (_text[marker]) &&
|
||||
while (_text[marker] &&
|
||||
! isWhitespace (_text[marker]) &&
|
||||
_text[marker] != '/')
|
||||
utf8_next_char (_text, marker);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue