From: Richard M. Stallman Date: Wed, 16 Nov 1994 14:15:54 +0000 (+0000) Subject: (Fopen_dribble_file): Call fclose only when dribble is non zero. X-Git-Tag: emacs-19.34~5878 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0011c119946db620381192f87f7b7d7290c0894;p=emacs.git (Fopen_dribble_file): Call fclose only when dribble is non zero. --- 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.") { if (NILP (file)) { - fclose (dribble); - dribble = 0; + if (dribble) + { + fclose (dribble); + dribble = 0; + } } else {