Commit 225203d4 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: correct a comment

No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
...@@ -1698,8 +1698,8 @@ int copy_file(FILE *inn, FILE *out) ...@@ -1698,8 +1698,8 @@ int copy_file(FILE *inn, FILE *out)
* method is APPEND, it means we are appending instead of overwriting. * method is APPEND, it means we are appending instead of overwriting.
* If method is PREPEND, it means we are prepending instead of * If method is PREPEND, it means we are prepending instead of
* overwriting. If nonamechange is TRUE, we don't change the current * overwriting. If nonamechange is TRUE, we don't change the current
* filename. nonamechange is ignored if tmp is FALSE, we're appending, * filename. nonamechange is irrelevant when appending or prepending,
* or we're prepending. * or when writing a temporary file.
* *
* Return TRUE on success or FALSE on error. */ * Return TRUE on success or FALSE on error. */
bool write_file(const char *name, FILE *f_open, bool tmp, bool write_file(const char *name, FILE *f_open, bool tmp,
...@@ -2111,7 +2111,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, ...@@ -2111,7 +2111,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp,
goto cleanup_and_exit; goto cleanup_and_exit;
} }
if (!tmp && method == OVERWRITE) { if (method == OVERWRITE && !tmp) {
/* If we must set the filename, and it changed, adjust things. */ /* If we must set the filename, and it changed, adjust things. */
if (!nonamechange && strcmp(openfile->filename, realname) != 0) { if (!nonamechange && strcmp(openfile->filename, realname) != 0) {
#ifndef DISABLE_COLOR #ifndef DISABLE_COLOR
......
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