mirror of https://github.com/tmux/tmux.git
Don't close random file descriptor on error, from J Raynor.
parent
16670410ca
commit
5e7f1b9f0a
|
@ -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;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
pid_t
|
||||
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
|
||||
{
|
||||
int slave;
|
||||
int slave = -1;
|
||||
char *path;
|
||||
pid_t pid;
|
||||
|
||||
|
|
Loading…
Reference in New Issue