mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-13 20:04:13 +03:00
tweaks: remove an unnecessary intermediate assignment
This commit is contained in:
parent
286b6a9088
commit
99e6293cd0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user