Fix use of uninitialized pty_name.

This commit is contained in:
Pavel Roskin 2004-02-10 00:16:17 +00:00
parent 7eb0ef8bd2
commit b46fe283f6

View File

@ -384,8 +384,8 @@ init_subshell (void)
subshell_pty = pty_open_master (pty_name); subshell_pty = pty_open_master (pty_name);
if (subshell_pty == -1) { if (subshell_pty == -1) {
fprintf (stderr, "Cannot open master side of pty (%s): %s\r\n", fprintf (stderr, "Cannot open master side of pty: %s\r\n",
pty_name, unix_error_string (errno)); unix_error_string (errno));
use_subshell = FALSE; use_subshell = FALSE;
return; return;
} }