From: Richard M. Stallman Date: Sat, 29 Jul 2006 01:54:16 +0000 (+0000) Subject: (safe_run_hooks_1): Don't crash if Vrun_hooks is nil. X-Git-Tag: emacs-pretest-22.0.90~1204 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e093f4432b787ddf421b96abfe5f4c04554188a;p=emacs.git (safe_run_hooks_1): Don't crash if Vrun_hooks is nil. --- diff --git a/src/keyboard.c b/src/keyboard.c index 23e10aefac1..95d880d1209 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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); }