Problem: Asan error for adding zero to NULL.
Solution: Do not compute pointer if there are no entries.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3998,
/**/
3997,
/**/
cctx_T *cctx)
{
garray_T *stack = &cctx->ctx_type_stack;
- type2_T *typep = ((type2_T *)stack->ga_data) + stack->ga_len;
+ type2_T *typep;
garray_T *type_gap = cctx->ctx_type_list;
int i;
type_T *result;
// Use the first value type for the list member type, then find the common
// type from following items.
+ typep = ((type2_T *)stack->ga_data) + stack->ga_len;
result = (typep -(count * skip) + skip - 1)->type_curr;
decl_result = (typep -(count * skip) + skip - 1)->type_decl;
for (i = 1; i < count; ++i)