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 /src/eval.c | |
parent | c4ec338fb80ebfb5d631f0718fdd1a1c04d9ed82 (diff) | |
download | vim-git-e8a92b6166e32f8e583e01c9f541cf81cf76f8e6.tar.gz |
patch 8.2.3767: crash when using NULL partialv8.2.3767
Problem: Crash when using NULL partial.
Solution: Check for NULL.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 1e2e4c476..821d0c1dc 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:"); |