On Saturday, June 2, 2012 6:57:15 PM UTC+7, Christian Brabandt wrote: > My guess is, that the alloc failed and returned NULL. > > Perhaps this patch helps to avoid it: > > diff --git a/src/eval.c b/src/eval.c > --- a/src/eval.c > +++ b/src/eval.c > @@ -22227,6 +22227,13 @@ > line_breakcheck(); /* check for CTRL-C hit */ > > fc = (funccall_T *)alloc(sizeof(funccall_T)); > + if (fc == NULL) > + { > + do_outofmem_msg((long_u) sizeof(funccall_T)); > + rettv->v_type = VAR_NUMBER; > + rettv->vval.v_number = -1; > + return; > + } > fc->caller = current_funccal; > current_funccal = fc; > fc->func = fp;
Thank you for the patch Christian. I will try to apply it and see if any memory allocation error message pop up. If the alloc failed, then there could be something wrong with vim memory allocation since I still have 4 GB free memory. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php