summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-23 15:48:42 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-23 15:48:42 +0100
commit81c3ea7496cbca2be12bf74a17575ff684343579 (patch)
tree9a588eafeea3b4fc2fad1c213cf78decd242bf77
parent8bf716cdba0e48f56b8bfcbed0f4c702a705e095 (diff)
downloadvim-git-8.2.0143.tar.gz
patch 8.2.0143: Coverity warning for possible use of NULL pointerv8.2.0143
Problem: Coverity warning for possible use of NULL pointer. Solution: Check argv is not NULL.
-rw-r--r--src/channel.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index cd791b59b..3aec7c800 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -5993,7 +5993,7 @@ theend:
#ifndef USE_ARGV
vim_free(ga.ga_data);
#endif
- if (argv != job->jv_argv)
+ if (argv != NULL && argv != job->jv_argv)
{
for (i = 0; argv[i] != NULL; i++)
vim_free(argv[i]);
diff --git a/src/version.c b/src/version.c
index e4600ce94..ab3df0c78 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 143,
+/**/
142,
/**/
141,