(Fdo_auto_save): Unconditionally set up unwind-protect.
Lisp_Object desc;
{
auto_saving = 0;
- close (XINT (desc));
+ if (XINT (desc) >= 0)
+ close (XINT (desc));
return Qnil;
}
/* Arrange to close that file whether or not we get an error.
Also reset auto_saving to 0. */
- if (listdesc >= 0)
- record_unwind_protect (do_auto_save_unwind, make_number (listdesc));
+ record_unwind_protect (do_auto_save_unwind, make_number (listdesc));
auto_saving = 1;