Patch 8.0.1512
Problem:    Warning for possibly using NULL pointer. (Coverity)
Solution:   Skip using the pointer if it's NULL.
Files:      src/ex_cmds.c


*** ../vim-8.0.1511/src/ex_cmds.c       2018-02-12 22:07:45.593058158 +0100
--- src/ex_cmds.c       2018-02-13 13:10:19.141901191 +0100
***************
*** 6918,6924 ****
                copy_option_part(&p, NameBuff, MAXPATHL, ",");
                mustfree = FALSE;
                rt = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
!               if (fullpathcmp(rt, NameBuff, FALSE) != FPC_SAME)
                {
                    int         fcount;
                    char_u      **fnames;
--- 6918,6924 ----
                copy_option_part(&p, NameBuff, MAXPATHL, ",");
                mustfree = FALSE;
                rt = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
!               if (rt != NULL && fullpathcmp(rt, NameBuff, FALSE) != FPC_SAME)
                {
                    int         fcount;
                    char_u      **fnames;
*** ../vim-8.0.1511/src/version.c       2018-02-13 12:57:38.066977614 +0100
--- src/version.c       2018-02-13 13:11:03.973608434 +0100
***************
*** 773,774 ****
--- 773,776 ----
  {   /* Add new patch number below this line */
+ /**/
+     1512,
  /**/

-- 
"It's so simple to be wise.  Just think of something stupid to say
and then don't say it."        -- Sam Levenson

 /// Bram Moolenaar -- b...@moolenaar.net -- 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui