mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
io: more guards against NULL filename (#7159)
References ac055d677a
References #4370
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user