changeset 9977:c5c2a86432a4

(Fopen_dribble_file): Call fclose only when dribble is non zero.
author Richard M. Stallman <rms@gnu.org>
date Wed, 16 Nov 1994 14:15:54 +0000
parents 2869e501c2de
children 5b5406fbd833
files src/keyboard.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Wed Nov 16 13:00:49 1994 +0000
+++ b/src/keyboard.c	Wed Nov 16 14:15:54 1994 +0000
@@ -5575,8 +5575,11 @@
 {
   if (NILP (file))
     {
-      fclose (dribble);
-      dribble = 0;
+      if (dribble)
+	{
+	  fclose (dribble);
+	  dribble = 0;
+	}
     }
   else
     {