0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -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:
Bram Moolenaar 2021-12-09 17:44:01 +00:00
parent c4ec338fb8
commit e8a92b6166
2 changed files with 3 additions and 1 deletions

View File

@ -5007,7 +5007,7 @@ echo_string_core(
if (fname != NULL) if (fname != NULL)
{ {
// When using uf_name prepend "g:" for a global function. // 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])) && vim_isupper(fname[1]))
{ {
ga_concat(&ga, (char_u *)"'g:"); ga_concat(&ga, (char_u *)"'g:");

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3767,
/**/ /**/
3766, 3766,
/**/ /**/