aboutsummaryrefslogtreecommitdiff
path: root/compat/forkpty-sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/forkpty-sunos.c')
-rw-r--r--compat/forkpty-sunos.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/compat/forkpty-sunos.c b/compat/forkpty-sunos.c
index 7b254d82..554e51ac 100644
--- a/compat/forkpty-sunos.c
+++ b/compat/forkpty-sunos.c
@@ -1,5 +1,3 @@
-/* $Id$ */
-
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
*
@@ -30,7 +28,7 @@
pid_t
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
{
- int slave;
+ int slave = -1;
char *path;
pid_t pid;