mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-24 05:16: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);
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user