On 22/08/08 21:20, Jan Minář 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) > > Cheers, > Jan.
Well, if you have run out of memory, it's probably too late to allocate a new memory block in order to return an error message, isn't it? Best regards, Tony. -- The end of the human race will be that it will eventually die of civilization. -- Ralph Waldo Emerson --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---