commit | 92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Apr 25 15:24:44 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Apr 25 15:24:44 2020 +0200 |
tree | 92daff824edb3982d06e20aa33e3b2c8fe3331ed | |
parent | 9d8d0b5c644ea53364d04403740b3f23e57c1497 [diff] [blame] |
patch 8.2.0634: crash with null partial and blob Problem: Crash with null partial and blob. Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan, closes #5984)
diff --git a/src/eval.c b/src/eval.c index 659588f..4bd45e9 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -3682,7 +3682,9 @@ { if (pt->pt_name != NULL) return pt->pt_name; - return pt->pt_func->uf_name; + if (pt->pt_func != NULL) + return pt->pt_func->uf_name; + return (char_u *)""; } static void