Jan Minar wrote:

> > Thanks.  I'll have a good look at it later.  One thing I noticed: you
> > don't need to give an error message for running out of memory at this
> > level, it's already done at a lower level in alloc().  There it also
> 
> That's what I thought, too.  But vim_strsave_shellescape() is
> documented to return NULL when out of memory:
> 
> src/misc2.c:
> 
>     1279  * Returns the result in allocated memory, NULL if we have run out.
>     1280  */
>     1281     char_u *
>     1282 vim_strsave_shellescape(string, do_special)

Yeah, but the out-of-memory message will already been given.  So you can
just abort the operation.

-- 
Article in the first Free Software Magazine: "Bram Moolenaar studied electrical
engineering at the Technical University of Delft and graduated in 1985 on a
multi-processor Unix architecture."
Response by "dimator": Could the school not afford a proper stage for the
ceremony?

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to