diff --git a/src/files.c b/src/files.c index ccf1f2a2..fe289d1b 100644 --- a/src/files.c +++ b/src/files.c @@ -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;