summaryrefslogtreecommitdiffstats
path: root/src/filepath.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-02-03 13:33:03 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-03 13:33:03 +0000
commit5411910c77cba85212963a2fb71d8c71f8a5d203 (patch)
tree02b93fc9c88ba737b0d94785790effa062de465b /src/filepath.c
parent6e1d31e9e3ca42cb883abca198f011dc6f4ceb14 (diff)
patch 8.2.4289: warnings reported by MSVCv8.2.4289
Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes #9689)
Diffstat (limited to 'src/filepath.c')
-rw-r--r--src/filepath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filepath.c b/src/filepath.c
index 65ea2bc6ea..4abf8f498d 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -372,12 +372,12 @@ repeat:
{
if (GetLongPathNameW(wfname, buf, _MAX_PATH))
{
- char_u *p = utf16_to_enc(buf, NULL);
+ char_u *q = utf16_to_enc(buf, NULL);
- if (p != NULL)
+ if (q != NULL)
{
vim_free(*bufp); // free any allocated file name
- *bufp = *fnamep = p;
+ *bufp = *fnamep = q;
}
}
vim_free(wfname);