changeset 21624:d7c8600f8775

(reset_terminal_modes): Only invoke hook if defined.
author Geoff Voelker <voelker@cs.washington.edu>
date Fri, 17 Apr 1998 05:25:48 +0000
parents 6c7a46148dd4
children 8ea12f8e8a04
files src/term.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Fri Apr 17 05:25:35 1998 +0000
+++ b/src/term.c	Fri Apr 17 05:25:48 1998 +0000
@@ -371,7 +371,8 @@
 {
   if (! FRAME_TERMCAP_P (selected_frame))
     {
-      (*reset_terminal_modes_hook) ();
+      if (reset_terminal_modes_hook)
+	(*reset_terminal_modes_hook) ();
       return;
     }
   if (TN_standout_width < 0)