mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Avoid clobbering errno, per comment from Tom.
This commit is contained in:
@ -357,8 +357,8 @@ pipe_read_line(char *cmd, char *line, int maxsize)
|
|||||||
|
|
||||||
if (fgets(line, maxsize, pgver) == NULL)
|
if (fgets(line, maxsize, pgver) == NULL)
|
||||||
{
|
{
|
||||||
pclose(pgver); /* no error checking */
|
|
||||||
perror("fgets failure");
|
perror("fgets failure");
|
||||||
|
pclose(pgver); /* no error checking */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user