]> git.eshelyaron.com Git - emacs.git/commitdiff
(reset_terminal_modes): Only invoke hook if defined.
authorGeoff Voelker <voelker@cs.washington.edu>
Fri, 17 Apr 1998 05:25:48 +0000 (05:25 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Fri, 17 Apr 1998 05:25:48 +0000 (05:25 +0000)
src/term.c

index 39aba03da9f71fab68d8b9dfb81de49500d3c30c..db1f317114e2e1fc5c6c8628dfd32d5cb839dba9 100644 (file)
@@ -371,7 +371,8 @@ reset_terminal_modes ()
 {
   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)