mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
os/env: Fix “invalid pointer to local” false positive
This commit is contained in:
parent
dc523eed8e
commit
84aa457ccd
@ -641,7 +641,7 @@ char *vim_getenv(const char *name)
|
||||
exe_name,
|
||||
"share" _PATHSEPSTR "nvim" _PATHSEPSTR "runtime" _PATHSEPSTR,
|
||||
MAXPATHL) == OK) {
|
||||
vim_path = exe_name;
|
||||
vim_path = exe_name; // -V507
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -675,6 +675,7 @@ char *vim_getenv(const char *name)
|
||||
vim_path = NULL;
|
||||
}
|
||||
}
|
||||
assert(vim_path != exe_name);
|
||||
}
|
||||
|
||||
#ifdef HAVE_PATHDEF
|
||||
|
Loading…
Reference in New Issue
Block a user