commit | ca92becf9dda2b0dcebb60d32f9a9d4a35f9500c | [log] [tgz] |
---|---|---|
author | David Lawrence Ramsey <pooka109@gmail.com> | Fri Oct 22 03:33:54 2004 +0000 |
committer | David Lawrence Ramsey <pooka109@gmail.com> | Fri Oct 22 03:33:54 2004 +0000 |
tree | 2c64fa2ba78eed62732dd98bb59c767c40936935 | |
parent | 2c4e34cfce9e2701297733b7fc891b90a0c12d1a [diff] |
apply patch from DB: in write_file(), if we've tried to write to an unwritable file and we're not prepending, tempname is NULL when it's passed to unlink(); this can cause problems if unlink() can't handle NULL, so don't call it in that case git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2012 35c25a1d-7b9e-4130-9fde-d3aeb78583b8