Fix clang static analyzer issues, as reported by floooh.

This commit is contained in:
John Kessenich 2015-07-11 18:01:03 -06:00
parent 1f654e1603
commit b329715caf
4 changed files with 44 additions and 35 deletions

View file

@ -408,7 +408,7 @@ protected:
// handle any non-escaped newline
if (ch == '\r' || ch == '\n') {
if (ch == '\r' && input->peek() == '\n')
ch = input->get();
input->get();
return '\n';
}