Commit 5dee9fb2 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

files: it is fine to "change" the name of a nameless buffer

This fixes https://savannah.gnu.org/bugs/?48156.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -2216,7 +2216,7 @@ int do_writeout(bool exiting)
append_type append = OVERWRITE;
char *given;
/* The filename we offer, or what the user typed so far. */
bool maychange = FALSE;
bool maychange = (openfile->filename[0] == '\0');
/* Whether it's okay to save the file under a different name. */
#ifndef DISABLE_EXTRA
static bool did_credits = FALSE;
......
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