diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-09 17:44:01 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-09 17:44:01 +0000 |
commit | e8a92b6166e32f8e583e01c9f541cf81cf76f8e6 (patch) | |
tree | ceb84ce7020e4601aa8ff53892465e05eaf35cab | |
parent | c4ec338fb80ebfb5d631f0718fdd1a1c04d9ed82 (diff) |
patch 8.2.3767: crash when using NULL partialv8.2.3767
Problem: Crash when using NULL partial.
Solution: Check for NULL.
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 1e2e4c4768..821d0c1dc8 100644 --- 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:"); diff --git a/src/version.c b/src/version.c index 0199acade2..c3e34e4a95 100644 --- 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, |