diff src/keyboard.c @ 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 3cc6bfe3a15d
children b3b5d904f956 858cb33ae39d
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);
 }