Commit 99e6293c authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove an unnecessary intermediate assignment

parent 286b6a90
Showing with 4 additions and 5 deletions
+4 -5
......@@ -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,
......
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