]> git.wh0rd.org Git - nano.git/commitdiff
Ugh, sigh
authorChris Allegretta <chrisa@asty.org>
Tue, 5 Jun 2001 23:45:54 +0000 (23:45 +0000)
committerChris Allegretta <chrisa@asty.org>
Tue, 5 Jun 2001 23:45:54 +0000 (23:45 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@678 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c

diff --git a/files.c b/files.c
index 492df5a88c3f8241c2bfc2f7d80f82401e81b94f..503e0ddedbd394f6d190e55c12a6b56399ac6924 100644 (file)
--- a/files.c
+++ b/files.c
@@ -506,7 +506,7 @@ int write_file(char *name, int tmp, int append, int nonamechange)
                  mask, realname, strerror(errno));
 
     if (!tmp) {
-       if (nonamechange)
+       if (!nonamechange)
            filename = mallocstrcpy(filename, realname);
 
        statusbar(_("Wrote %d lines"), lineswritten);