(safe_run_hooks_1): Don't crash if Vrun_hooks is nil.

This commit is contained in:
Richard M. Stallman
2006-07-29 01:54:16 +00:00
parent 69b9efaa09
commit 5e093f4432

View 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);
}