From d0011c119946db620381192f87f7b7d7290c0894 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 16 Nov 1994 14:15:54 +0000 Subject: (Fopen_dribble_file): Call fclose only when dribble is non zero. --- src/keyboard.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3