diff options
author | Richard M. Stallman <[email protected]> | 1994-11-16 14:15:54 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1994-11-16 14:15:54 +0000 |
commit | d0011c119946db620381192f87f7b7d7290c0894 (patch) | |
tree | 57a33de5b574e9ffd6e71b298cbb9a620a894a0e /src | |
parent | b9755a1207897c1fb8726bd02a8da6454f0f9807 (diff) |
(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 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 { |