mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
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.
This commit is contained in:
parent
3198870137
commit
e4db7aedab
@ -6918,7 +6918,7 @@ fix_help_buffer(void)
|
|||||||
copy_option_part(&p, NameBuff, MAXPATHL, ",");
|
copy_option_part(&p, NameBuff, MAXPATHL, ",");
|
||||||
mustfree = FALSE;
|
mustfree = FALSE;
|
||||||
rt = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
|
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;
|
int fcount;
|
||||||
char_u **fnames;
|
char_u **fnames;
|
||||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1512,
|
||||||
/**/
|
/**/
|
||||||
1511,
|
1511,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user