]> git.wh0rd.org Git - nano.git/commitdiff
still more cosmetic fixes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 15 Dec 2006 05:03:08 +0000 (05:03 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 15 Dec 2006 05:03:08 +0000 (05:03 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4004 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c

index 3af05746dc523f171f4b4b8b15647195cf302065..65b42cdc56b1a2a883417ac7ba9bd25890662ed4 100644 (file)
@@ -1892,9 +1892,9 @@ int do_writeout(bool exiting)
                name_exists = (stat(answer, &st) != -1);
                full_answer = get_full_path(answer);
                full_filename = get_full_path(openfile->filename);
-               different_name = (strcmp((full_answer != NULL) ?
-                       full_answer : answer, (full_filename != NULL) ?
-                       full_filename : openfile->filename) != 0);
+               different_name = (strcmp((full_answer == NULL) ?
+                       answer : full_answer, (full_filename == NULL) ?
+                       openfile->filename : full_filename) != 0);
 
                /* Convert nulls to newlines.  answer_len is the
                 * string's real length. */