refactor: fix warnings

This commit is contained in:
Justin M. Keyes
2017-02-04 05:57:15 +01:00
parent 67fbbdb1b5
commit ea449b16b9
4 changed files with 8 additions and 11 deletions

View File

@@ -4086,10 +4086,8 @@ void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname)
#ifdef WIN32
if (!buf->b_p_bin) {
char_u *rfname;
// If the file name is a shortcut file, use the file it links to.
rfname = os_resolve_shortcut(*ffname);
char_u *rfname = (char_u *)os_resolve_shortcut(*ffname);
if (rfname != NULL) {
xfree(*ffname);
*ffname = rfname;