aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index a19fcd9f663..c47b3533145 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3860,7 +3860,8 @@ by calling `format-decode', which see. */)
3860 if (same_at_start - BEGV_BYTE == end_offset - beg_offset) 3860 if (same_at_start - BEGV_BYTE == end_offset - beg_offset)
3861 { 3861 {
3862 emacs_close (fd); 3862 emacs_close (fd);
3863 specpdl_ptr--; 3863 clear_unwind_protect (fd_index);
3864
3864 /* Truncate the buffer to the size of the file. */ 3865 /* Truncate the buffer to the size of the file. */
3865 del_range_1 (same_at_start, same_at_end, 0, 0); 3866 del_range_1 (same_at_start, same_at_end, 0, 0);
3866 goto handled; 3867 goto handled;