# HG changeset patch # User Christian Brabandt # Date 1518524106 -3600 # Node ID 6958e700a4582ecde965494c723f832bfb09f21c # Parent 09e4fed6b37b7be67b246621d369cf40fdc9ab38 patch 8.0.1512: warning for possibly using NULL pointer commit https://github.com/vim/vim/commit/e4db7aedab65abadcc84c78e7a10ec7bb62f11cf Author: Bram Moolenaar Date: Tue Feb 13 13:12:11 2018 +0100 patch 8.0.1512: warning for possibly using NULL pointer Problem: Warning for possibly using NULL pointer. (Coverity) Solution: Skip using the pointer if it's NULL. diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -6918,7 +6918,7 @@ fix_help_buffer(void) copy_option_part(&p, NameBuff, MAXPATHL, ","); mustfree = FALSE; rt = vim_getenv((char_u *)"VIMRUNTIME", &mustfree); - if (fullpathcmp(rt, NameBuff, FALSE) != FPC_SAME) + if (rt != NULL && fullpathcmp(rt, NameBuff, FALSE) != FPC_SAME) { int fcount; char_u **fnames; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1512, +/**/ 1511, /**/ 1510,