mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Fix use of uninitialized pty_name.
This commit is contained in:
parent
7eb0ef8bd2
commit
b46fe283f6
@ -384,8 +384,8 @@ init_subshell (void)
|
||||
|
||||
subshell_pty = pty_open_master (pty_name);
|
||||
if (subshell_pty == -1) {
|
||||
fprintf (stderr, "Cannot open master side of pty (%s): %s\r\n",
|
||||
pty_name, unix_error_string (errno));
|
||||
fprintf (stderr, "Cannot open master side of pty: %s\r\n",
|
||||
unix_error_string (errno));
|
||||
use_subshell = FALSE;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user