mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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)
|
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:");
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user