Commit db9d7d9a authored by Karoly Lorentey's avatar Karoly Lorentey

Fix segfault by `C-x 5 2' on the controlling tty. (Reported by Suresh Madhu.)

* src/frame.c (Fmake_terminal_frame): Handle NULL tty names correctly.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-526
parent 4fd9de39
......@@ -47,6 +47,7 @@ Bas Kok <nekkobassu@yahoo.com>
Jurej Kubelka <Juraj.Kubelka@email.cz>
David Lichteblau <david@lichteblau.com>
mace <mace@kirjakaapeli.lib.hel.fi>
Suresh Madhu <madhu@cs.unm.edu>
Xavier Mallard <zedek@gnu-rox.org>
Istvan Marko <mi-mtty@kismala.com>
Ted Morse <morse@ciholas.com>
......
......@@ -766,9 +766,12 @@ affects all frames on the same terminal device. */)
Fmodify_frame_parameters (frame, Fcons (Fcons (Qtty_type,
build_string (t->display_info.tty->type)),
Qnil));
Fmodify_frame_parameters (frame, Fcons (Fcons (Qtty,
build_string (t->display_info.tty->name)),
Qnil));
if (t->display_info.tty->name != NULL)
Fmodify_frame_parameters (frame, Fcons (Fcons (Qtty,
build_string (t->display_info.tty->name)),
Qnil));
else
Fmodify_frame_parameters (frame, Fcons (Fcons (Qtty, Qnil), Qnil));
/* Make the frame face alist be frame-specific, so that each
frame could change its face definitions independently. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment