Content-Length: 257524 | pFad | http://github.com/postgrespro/postgres/commit/93fcf2d2095674834e1ddbc6803ec043e3216afa

33 fgetc() returns int, not char. · postgrespro/postgres@93fcf2d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/93fcf2d2095674834e1ddbc6803ec043e3216afa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy