Commit 21119126 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

revert erroneous change

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4094 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 6 additions and 5 deletions
+6 -5
...@@ -1908,11 +1908,12 @@ bool do_writeout(bool exiting) ...@@ -1908,11 +1908,12 @@ bool do_writeout(bool exiting)
full_filename = get_full_path(openfile->filename); full_filename = get_full_path(openfile->filename);
name_exists = (stat((full_answer == NULL) ? answer : name_exists = (stat((full_answer == NULL) ? answer :
full_answer, &st) != -1); full_answer, &st) != -1);
do_warning = (name_exists || if (openfile->filename[0] == '\0')
(openfile->filename[0] != '\0' && do_warning = name_exists;
strcmp((full_answer == NULL) ? answer : else
full_answer, (full_filename == NULL) ? do_warning = (strcmp((full_answer == NULL) ?
openfile->filename : full_filename) != 0)); answer : full_answer, (full_filename == NULL) ?
openfile->filename : full_filename) != 0);
/* Convert nulls to newlines. answer_len is the /* Convert nulls to newlines. answer_len is the
* string's real length. */ * string's real length. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment