aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorKaroly Lorentey <[email protected]>2006-03-08 16:47:48 +0000
committerKaroly Lorentey <[email protected]>2006-03-08 16:47:48 +0000
commitdb9d7d9a54118c277fdc47b2840139e78218b1ae (patch)
tree93ebf1a41c223a35ae61d76b4c6f4b9c7ae7b4ae /src/frame.c
parent4fd9de393a0c57766f0d0ac91c0abc2e2fa268f6 (diff)
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: [email protected]/emacs--multi-tty--0--patch-526
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c
index 5131f4959e..ac7fc5912e 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -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. */