Skip to content

Commit 93fcf2d

Browse files
committed
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.
1 parent 8638c76 commit 93fcf2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/activity/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ pgstat_read_statsfile(void)
14981498
*/
14991499
for (;;)
15001500
{
1501-
char t = fgetc(fpin);
1501+
int t = fgetc(fpin);
15021502

15031503
switch (t)
15041504
{

0 commit comments

Comments
 (0)