# HG changeset patch # User Karl Heuer # Date 824524106 0 # Node ID 2eb3fcfa26adb5f88dafcfcda63403fe99b0a209 # Parent c1ca33c85944759060828f8ed3cbb10ae898a7f8 (Fopen_dribble_file): Close dribble file before opening new file. diff -r c1ca33c85944 -r 2eb3fcfa26ad src/keyboard.c --- a/src/keyboard.c Sat Feb 17 02:23:13 1996 +0000 +++ b/src/keyboard.c Sat Feb 17 02:28:26 1996 +0000 @@ -6881,15 +6881,12 @@ (file) Lisp_Object file; { - if (NILP (file)) + if (dribble) { - if (dribble) - { - fclose (dribble); - dribble = 0; - } + fclose (dribble); + dribble = 0; } - else + if (!NILP (file)) { file = Fexpand_file_name (file, Qnil); dribble = fopen (XSTRING (file)->data, "w");