Skip to content
GitLab
Menu
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
99e6293c
Commit
99e6293c
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: remove an unnecessary intermediate assignment
parent
286b6a90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.c
+4
-5
src/files.c
with
4 additions
and
5 deletions
+4
-5
src/files.c
View file @
99e6293c
...
...
@@ -2243,11 +2243,10 @@ int do_writeout(bool exiting)
/* Whether it's okay to save the file under a different name. */
bool
result
=
FALSE
;
if
(
exiting
&&
openfile
->
filename
[
0
]
!=
'\0'
&&
ISSET
(
TEMP_FILE
))
{
result
=
write_file
(
openfile
->
filename
,
NULL
,
FALSE
,
OVERWRITE
,
FALSE
);
if
(
result
)
return
1
;
/* The write succeeded. */
if
(
exiting
&&
ISSET
(
TEMP_FILE
)
&&
openfile
->
filename
[
0
]
!=
'\0'
)
{
if
(
write_file
(
openfile
->
filename
,
NULL
,
FALSE
,
OVERWRITE
,
FALSE
))
return
1
;
/* If writing the file failed, go on to prompt for a new name. */
}
given
=
mallocstrcpy
(
NULL
,
...
...
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