diff options
| author | Richard M. Stallman | 2006-07-29 01:54:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-07-29 01:54:16 +0000 |
| commit | 5e093f4432b787ddf421b96abfe5f4c04554188a (patch) | |
| tree | 0d25936202ca5b103b7300bc862e9725e187e088 /src | |
| parent | 69b9efaa09b5fe495b5520af1a44f7f84dfd6b90 (diff) | |
| download | emacs-5e093f4432b787ddf421b96abfe5f4c04554188a.tar.gz emacs-5e093f4432b787ddf421b96abfe5f4c04554188a.zip | |
(safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
| 2032 | safe_run_hooks_1 (hook) | 2032 | safe_run_hooks_1 (hook) |
| 2033 | Lisp_Object hook; | 2033 | Lisp_Object hook; |
| 2034 | { | 2034 | { |
| 2035 | if (NILP (Vrun_hooks)) | ||
| 2036 | return Qnil; | ||
| 2035 | return call1 (Vrun_hooks, Vinhibit_quit); | 2037 | return call1 (Vrun_hooks, Vinhibit_quit); |
| 2036 | } | 2038 | } |
| 2037 | 2039 | ||