io: more guards against NULL filename (#7159)

References ac055d677a
References #4370
This commit is contained in:
Justin M. Keyes
2017-08-13 18:46:09 +02:00
committed by GitHub
parent 3c8d063786
commit d258ac8ed2
4 changed files with 8 additions and 1 deletions

View File

@@ -1460,6 +1460,7 @@ static int process_still_running;
*/
static time_t swapfile_info(char_u *fname)
{
assert(fname != NULL);
int fd;
struct block0 b0;
time_t x = (time_t)0;
@@ -3135,6 +3136,7 @@ attention_message (
char_u *fname /* swap file name */
)
{
assert(buf->b_fname != NULL);
time_t x, sx;
char *p;