Dominique Pelle wrote: > Attached patch fixes a bug in vim_getenv() found > with cppcheck static analyzer: > > $ cd vim/src ; cppcheck -f -I proto misc1.c > [misc1.c:3956]: (error) Possible null pointer dereference: mustfree - > otherwise it is redundant to check if mustfree is null at line 3953 > > Reading the code, I'd expect invalid memory free to possibly happen > on Windows. I don't have a Windows computer to test it, but > the patch is simple anyway.
Thanks! -- hundred-and-one symptoms of being an internet addict: 5. You find yourself brainstorming for new subjects to search. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
