mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -3682,7 +3682,9 @@ partial_name(partial_T *pt)
|
||||
{
|
||||
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
|
||||
|
Reference in New Issue
Block a user