diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index af1fb97d1a3..209bf9dc7c9 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6881,15 +6881,12 @@ If FILE is nil, close any open dribble file.") | |||
| 6881 | (file) | 6881 | (file) |
| 6882 | Lisp_Object file; | 6882 | Lisp_Object file; |
| 6883 | { | 6883 | { |
| 6884 | if (NILP (file)) | 6884 | if (dribble) |
| 6885 | { | 6885 | { |
| 6886 | if (dribble) | 6886 | fclose (dribble); |
| 6887 | { | 6887 | dribble = 0; |
| 6888 | fclose (dribble); | ||
| 6889 | dribble = 0; | ||
| 6890 | } | ||
| 6891 | } | 6888 | } |
| 6892 | else | 6889 | if (!NILP (file)) |
| 6893 | { | 6890 | { |
| 6894 | file = Fexpand_file_name (file, Qnil); | 6891 | file = Fexpand_file_name (file, Qnil); |
| 6895 | dribble = fopen (XSTRING (file)->data, "w"); | 6892 | dribble = fopen (XSTRING (file)->data, "w"); |