1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

fgetc() returns int, not char.

This has no practical effect, since this code doesn't actually need to
distinguish EOF (-1) from \0377; but it silences a Coverity complaint.
This commit is contained in:
Tom Lane
2022-04-11 13:15:46 -04:00
parent 8638c76cc9
commit 93fcf2d209

View File

@@ -1498,7 +1498,7 @@ pgstat_read_statsfile(void)
*/
for (;;)
{
char t = fgetc(fpin);
int t = fgetc(fpin);
switch (t)
{