To: vim_dev@googlegroups.com Subject: Patch 8.0.1512 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///