YAwn: Fix infinite loop in comment scanner
@@ -405,7 +405,7 @@ void Lexer::scanComment ()
{
ELEKTRA_LOG_DEBUG ("Scan comment");
size_t start = input.index ();
- while (input.LA (1) != '\n')
+ while (input.LA (1) != '\n' && input.LA (1) != 0)
{
forward ();
}
