mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.3767: crash when using NULL partial
Problem: Crash when using NULL partial. Solution: Check for NULL.
This commit is contained in:
@@ -5007,7 +5007,7 @@ echo_string_core(
|
||||
if (fname != NULL)
|
||||
{
|
||||
// When using uf_name prepend "g:" for a global function.
|
||||
if (pt->pt_name == NULL && fname[0] == '\''
|
||||
if (pt != NULL && pt->pt_name == NULL && fname[0] == '\''
|
||||
&& vim_isupper(fname[1]))
|
||||
{
|
||||
ga_concat(&ga, (char_u *)"'g:");
|
||||
|
Reference in New Issue
Block a user