changeset 72168:4c683d3ba427

(safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 Jul 2006 01:54:16 +0000
parents b0a67cf52eb6
children 06d60c338318
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Jul 29 01:53:31 2006 +0000
+++ b/src/keyboard.c	Sat Jul 29 01:54:16 2006 +0000
@@ -2032,6 +2032,8 @@
 safe_run_hooks_1 (hook)
      Lisp_Object hook;
 {
+  if (NILP (Vrun_hooks))
+    return Qnil;
   return call1 (Vrun_hooks, Vinhibit_quit);
 }