clarify a comment, and don't try to display the buffer name in

die_save_file() if it's been blanked out by get_next_file()'s failure to
find a unique filename


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2573 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2005-06-01 04:23:52 +00:00
parent e0b55138b9
commit dac3bca274
2 changed files with 6 additions and 2 deletions

View File

@@ -402,7 +402,8 @@ char *get_next_filename(const char *name, const char *suffix)
sprintf(buf + namelen + suffixlen, ".%lu", i);
}
/* We get here only if there is no possible save file. */
/* We get here only if there is no possible save file. Blank out
* the filename to indicate this. */
null_at(&buf, 0);
return buf;