aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-04 05:57:15 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-02-04 11:07:50 +0100
commitea449b16b95df59b09862961694e28d1d5c8144d (patch)
tree0cdbe82a9dbcbaae159f7095ae78c6a51f6a3837 /src/nvim/buffer.c
parent67fbbdb1b5eb6e48c7c533042abba9e409833ca6 (diff)
downloadrneovim-ea449b16b95df59b09862961694e28d1d5c8144d.tar.gz
rneovim-ea449b16b95df59b09862961694e28d1d5c8144d.tar.bz2
rneovim-ea449b16b95df59b09862961694e28d1d5c8144d.zip
refactor: fix warnings
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c4
1 files changed, 1 insertions, 3 deletions
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;