changeset 26474:9c84f7c6082d v8.2.3767

patch 8.2.3767: crash when using NULL partial Commit: https://github.com/vim/vim/commit/e8a92b6166e32f8e583e01c9f541cf81cf76f8e6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 9 17:44:01 2021 +0000 patch 8.2.3767: crash when using NULL partial Problem: Crash when using NULL partial. Solution: Check for NULL.
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Dec 2021 18:45:04 +0100
parents a8195907f08e
children 9f535da74f6f
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -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:");
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3767,
+/**/
     3766,
 /**/
     3765,