From: Geoff Voelker Date: Fri, 17 Apr 1998 05:25:48 +0000 (+0000) Subject: (reset_terminal_modes): Only invoke hook if defined. X-Git-Tag: emacs-20.3~1451 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3e1cb05b4576a59e38f022805c384c0453b953a;p=emacs.git (reset_terminal_modes): Only invoke hook if defined. --- diff --git a/src/term.c b/src/term.c index 39aba03da9f..db1f317114e 100644 --- a/src/term.c +++ b/src/term.c @@ -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)