mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 12:11:22 +02:00
Avoid clobbering errno, per comment from Tom.
This commit is contained in:
parent
83c759ea0e
commit
cd1fefa973
@ -357,8 +357,8 @@ pipe_read_line(char *cmd, char *line, int maxsize)
|
||||
|
||||
if (fgets(line, maxsize, pgver) == NULL)
|
||||
{
|
||||
pclose(pgver); /* no error checking */
|
||||
perror("fgets failure");
|
||||
pclose(pgver); /* no error checking */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user