]> git.eshelyaron.com Git - emacs.git/commitdiff
(safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 Jul 2006 01:54:16 +0000 (01:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 Jul 2006 01:54:16 +0000 (01:54 +0000)
src/keyboard.c

index 23e10aefac1f5c2b0e259490ee57dbba615e523b..95d880d1209539d6adda4e68f5353d9ea4019cad 100644 (file)
@@ -2032,6 +2032,8 @@ static Lisp_Object
 safe_run_hooks_1 (hook)
      Lisp_Object hook;
 {
+  if (NILP (Vrun_hooks))
+    return Qnil;
   return call1 (Vrun_hooks, Vinhibit_quit);
 }