From ea449b16b95df59b09862961694e28d1d5c8144d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 4 Feb 2017 05:57:15 +0100 Subject: refactor: fix warnings --- src/nvim/buffer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 26dbbe8bb5..868e842ecd 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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; -- cgit