summaryrefslogtreecommitdiff
path: root/src/port/exec.c
diff options
context:
space:
mode:
authorAlvaro Herrera2010-12-16 20:15:37 +0000
committerAlvaro Herrera2010-12-16 20:15:37 +0000
commitcd1fefa973968ff4e3760a9593f70fe2da0def48 (patch)
treef03bbdf48597ca94f290cafc692bcea5b56a221e /src/port/exec.c
parent83c759ea0ea8ffe07c45e6fd2c489cebce2caad6 (diff)
Avoid clobbering errno, per comment from Tom.
Diffstat (limited to 'src/port/exec.c')
-rw-r--r--src/port/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/exec.c b/src/port/exec.c
index cc044ea5f03..8aaee2bb5f2 100644
--- a/src/port/exec.c
+++ b/src/port/exec.c
@@ -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;
}