Remove unnecessary errno reset.

errno is checked only if fgetc returns an error.
This commit is contained in:
Érico Nogueira 2021-07-06 23:36:17 -03:00
parent 0bfe1a604c
commit 67a081e49a
1 changed files with 0 additions and 1 deletions

View File

@ -33,7 +33,6 @@ static int parser_read_char(struct kanshi_parser *parser) {
return ch;
}
errno = 0;
int ch = fgetc(parser->f);
if (ch == EOF) {
if (errno != 0) {