Avoid clobbering errno, per comment from Tom.

This commit is contained in:
Alvaro Herrera 2010-12-16 17:15:37 -03:00
parent 83c759ea0e
commit cd1fefa973
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}