diff options
author | Karoly Lorentey <lorentey@elte.hu> | 2006-03-08 16:47:48 +0000 |
---|---|---|
committer | Karoly Lorentey <lorentey@elte.hu> | 2006-03-08 16:47:48 +0000 |
commit | db9d7d9a54118c277fdc47b2840139e78218b1ae (patch) | |
tree | 93ebf1a41c223a35ae61d76b4c6f4b9c7ae7b4ae /src/frame.c | |
parent | 4fd9de393a0c57766f0d0ac91c0abc2e2fa268f6 (diff) | |
download | emacs-db9d7d9a54118c277fdc47b2840139e78218b1ae.tar.gz |
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
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c index 5131f4959e1..ac7fc5912e8 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. */ |