diff options
author | Alvaro Herrera | 2010-12-16 20:15:37 +0000 |
---|---|---|
committer | Alvaro Herrera | 2010-12-16 20:15:37 +0000 |
commit | cd1fefa973968ff4e3760a9593f70fe2da0def48 (patch) | |
tree | f03bbdf48597ca94f290cafc692bcea5b56a221e /src/port/exec.c | |
parent | 83c759ea0ea8ffe07c45e6fd2c489cebce2caad6 (diff) |
Avoid clobbering errno, per comment from Tom.
Diffstat (limited to 'src/port/exec.c')
-rw-r--r-- | src/port/exec.c | 2 |
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; } |