aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-11-16 14:15:54 +0000
committerRichard M. Stallman <[email protected]>1994-11-16 14:15:54 +0000
commitd0011c119946db620381192f87f7b7d7290c0894 (patch)
tree57a33de5b574e9ffd6e71b298cbb9a620a894a0e /src/keyboard.c
parentb9755a1207897c1fb8726bd02a8da6454f0f9807 (diff)
(Fopen_dribble_file): Call fclose only when dribble is non zero.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 2be24b4f00..82f09de4f8 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5575,8 +5575,11 @@ If FILE is nil, close any open dribble file.")
{
if (NILP (file))
{
- fclose (dribble);
- dribble = 0;
+ if (dribble)
+ {
+ fclose (dribble);
+ dribble = 0;
+ }
}
else
{