summaryrefslogtreecommitdiffstats
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-12-16 13:06:10 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-16 13:06:10 +0000
commit6df0f2759d12ec0bc999b2963ecea4387a2bc516 (patch)
treee0123e1cb1c5270f76f16a4da69c74b903eff634 /src/os_mswin.c
parent6ecf58b0d7d9b8fbba780d19d2e6c0f227df715b (diff)
patch 8.2.3824: no ASAN support for MSVCv8.2.3824
Problem: No ASAN support for MSVC. Solution: Add ASAN support and fix a coupld of uncovered problems. (Yegappan Lakshmanan, closes #9357)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 360c456e5c..b6393db5ab 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -389,6 +389,8 @@ mch_isFullName(char_u *fname)
// Another way to check is to use mch_FullName() and see if the result is
// the same as the name or mch_FullName() fails. However, this has quite a
// bit of overhead, so let's not do that.
+ if (*fname == NUL)
+ return TRUE;
return ((ASCII_ISALPHA(fname[0]) && fname[1] == ':'
&& (fname[2] == '/' || fname[2] == '\\'))
|| (fname[0] == fname[1] && (fname[0] == '/' || fname[0] == '\\')));