diff options
| author | Richard M. Stallman | 1994-11-16 14:15:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-11-16 14:15:54 +0000 |
| commit | d0011c119946db620381192f87f7b7d7290c0894 (patch) | |
| tree | 57a33de5b574e9ffd6e71b298cbb9a620a894a0e /src | |
| parent | b9755a1207897c1fb8726bd02a8da6454f0f9807 (diff) | |
| download | emacs-d0011c119946db620381192f87f7b7d7290c0894.tar.gz emacs-d0011c119946db620381192f87f7b7d7290c0894.zip | |
(Fopen_dribble_file): Call fclose only when dribble is non zero.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 2be24b4f007..82f09de4f82 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -5575,8 +5575,11 @@ If FILE is nil, close any open dribble file.") | |||
| 5575 | { | 5575 | { |
| 5576 | if (NILP (file)) | 5576 | if (NILP (file)) |
| 5577 | { | 5577 | { |
| 5578 | fclose (dribble); | 5578 | if (dribble) |
| 5579 | dribble = 0; | 5579 | { |
| 5580 | fclose (dribble); | ||
| 5581 | dribble = 0; | ||
| 5582 | } | ||
| 5580 | } | 5583 | } |
| 5581 | else | 5584 | else |
| 5582 | { | 5585 | { |