No OOM in vim_strsave_fnameescape()

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-30 23:51:39 -03:00
parent 81ca5ff126
commit cca66742eb
2 changed files with 7 additions and 11 deletions

View File

@@ -8557,8 +8557,6 @@ static int ses_put_fname(FILE *fd, char_u *name, unsigned *flagp)
/* escape special characters */
p = vim_strsave_fnameescape(sname, FALSE);
free(sname);
if (p == NULL)
return FAIL;
/* write the result */
if (fputs((char *)p, fd) < 0)