mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-patch:8.2.3824: no ASAN support for MSVC
Problem: No ASAN support for MSVC.
Solution: Add ASAN support and fix a coupld of uncovered problems. (Yegappan
Lakshmanan, closes vim/vim#9357)
6df0f2759d
This commit is contained in:
@@ -1521,7 +1521,7 @@ void simplify_filename(char_u *filename)
|
||||
|
||||
p = filename;
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
if (p[1] == ':') { // skip "x:"
|
||||
if (p[0] != NUL && p[1] == ':') { // skip "x:"
|
||||
p += 2;
|
||||
}
|
||||
#endif
|
||||
@@ -2402,9 +2402,11 @@ static int path_to_absolute(const char_u *fname, char_u *buf, size_t len, int fo
|
||||
int path_is_absolute(const char_u *fname)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if (*fname == NUL) {
|
||||
return true;
|
||||
}
|
||||
// A name like "d:/foo" and "//server/share" is absolute
|
||||
return ((isalpha(fname[0]) && fname[1] == ':'
|
||||
&& vim_ispathsep_nocolon(fname[2]))
|
||||
return ((isalpha(fname[0]) && fname[1] == ':' && vim_ispathsep_nocolon(fname[2]))
|
||||
|| (vim_ispathsep_nocolon(fname[0]) && fname[0] == fname[1]));
|
||||
#else
|
||||
// UNIX: This just checks if the file name starts with '/' or '~'.
|
||||
|
Reference in New Issue
Block a user