Fix clang static analyzer issues, as reported by floooh.
This commit is contained in:
parent
1f654e1603
commit
b329715caf
4 changed files with 44 additions and 35 deletions
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue