# HG changeset patch # User Richard M. Stallman # Date 1154138056 0 # Node ID 4c683d3ba427f7882d252e9098bbc59f54e46566 # Parent b0a67cf52eb69f73887b87a0f149d4135e437371 (safe_run_hooks_1): Don't crash if Vrun_hooks is nil. diff -r b0a67cf52eb6 -r 4c683d3ba427 src/keyboard.c --- 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); }