Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
225203d4
Commit
225203d4
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: correct a comment
parent
c2a0c78d
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.c
+3
-3
src/files.c
with
3 additions
and
3 deletions
+3
-3
src/files.c
View file @
225203d4
...
...
@@ -1698,8 +1698,8 @@ int copy_file(FILE *inn, FILE *out)
* method is APPEND, it means we are appending instead of overwriting.
* If method is PREPEND, it means we are prepending instead of
* overwriting. If nonamechange is TRUE, we don't change the current
* filename. nonamechange is i
gnored if tmp is FALSE, we're ap
pending,
* or w
e're prepending
.
* filename. nonamechange is i
rrelevant when appending or pre
pending,
* or w
hen writing a temporary file
.
*
* Return TRUE on success or FALSE on error. */
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
;
}
if
(
!
tmp
&&
method
==
OVERWRITE
)
{
if
(
method
==
OVERWRITE
&&
!
tmp
)
{
/* If we must set the filename, and it changed, adjust things. */
if
(
!
nonamechange
&&
strcmp
(
openfile
->
filename
,
realname
)
!=
0
)
{
#ifndef DISABLE_COLOR
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help