]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0143: Coverity warning for possible use of NULL pointer v8.2.0143
authorBram Moolenaar <Bram@vim.org>
Thu, 23 Jan 2020 14:48:42 +0000 (15:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Jan 2020 14:48:42 +0000 (15:48 +0100)
Problem:    Coverity warning for possible use of NULL pointer.
Solution:   Check argv is not NULL.

src/channel.c
src/version.c

index cd791b59b0153ed935b7a4b614df7032d0117340..3aec7c800839ee7b7cb76d7af484d7d0470e071c 100644 (file)
@@ -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]);
index e4600ce944629bffde422d1d23c5fded18a69d81..ab3df0c781b30e519d145bcafcd1b626bd77a146 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    143,
 /**/
     142,
 /**/