summaryrefslogtreecommitdiffstats
path: root/compat/forkpty-hpux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-09-25 10:53:29 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-09-25 10:53:29 +0100
commit5e7f1b9f0a5bcff8f9ba410c17de4e822428614c (patch)
tree871c9b3226b624ec653aebbe60b4f44d9d786af5 /compat/forkpty-hpux.c
parent16670410ca24e43eff88824aacb988432afc8691 (diff)
Don't close random file descriptor on error, from J Raynor.
Diffstat (limited to 'compat/forkpty-hpux.c')
-rw-r--r--compat/forkpty-hpux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/forkpty-hpux.c b/compat/forkpty-hpux.c
index 90452f8d..c72e096d 100644
--- a/compat/forkpty-hpux.c
+++ b/compat/forkpty-hpux.c
@@ -29,7 +29,7 @@
pid_t
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
{
- int slave;
+ int slave = -1;
char *path;
pid_t pid;