aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c7
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 {