we indicate success on the statusbar
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3362
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
suggested by Jordi)
- Clarify the error message when writing a temporary file for
prepending fails. (DLR)
+ - Simplify the routine for closing the file just before we
+ indicate success on the statusbar. (DLR)
- rcfile.c:
parse_argument()
- Rename variable ptr_bak to ptr_save, for consistency. (DLR)
strerror(errno));
goto cleanup_and_exit;
}
- } else if (fclose(f) == EOF) {
- statusbar(_("Error writing %s: %s"), realname, strerror(errno));
- unlink(tempname);
- goto cleanup_and_exit;
- }
+ } else
+ fclose(f);
if (!tmp && append == OVERWRITE) {
if (!nonamechange) {