Skip to content

Commit e4db7ae

Browse files
committed
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.
1 parent 3198870 commit e4db7ae

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/ex_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6918,7 +6918,7 @@ fix_help_buffer(void)
69186918
copy_option_part(&p, NameBuff, MAXPATHL, ",");
69196919
mustfree = FALSE;
69206920
rt = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
6921-
if (fullpathcmp(rt, NameBuff, FALSE) != FPC_SAME)
6921+
if (rt != NULL && fullpathcmp(rt, NameBuff, FALSE) != FPC_SAME)
69226922
{
69236923
int fcount;
69246924
char_u **fnames;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1512,
774776
/**/
775777
1511,
776778
/**/

0 commit comments

Comments
 (0)