]> granicus.if.org Git - vim/commitdiff
patch 7.4.1385 v7.4.1385
authorBram Moolenaar <Bram@vim.org>
Sun, 21 Feb 2016 22:12:41 +0000 (23:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 21 Feb 2016 22:12:41 +0000 (23:12 +0100)
Problem:    Compiler warning for using array.
Solution:   Use the right member name. (Yegappan Lakshmanan)

src/eval.c
src/version.c

index 0d38e11ba84cd839eb6dfcac1da6a312b94da7a6..3fb06d00ea564c16113c39dfbe195b7ec3d6e528 100644 (file)
@@ -10135,7 +10135,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported)
                    break;
                opt->jo_set |= JO_EXIT_CB;
                opt->jo_exit_cb = get_tv_string_buf_chk(item, opt->jo_ecb_buf);
-               if (opt->jo_ecb_buf == NULL)
+               if (opt->jo_exit_cb == NULL)
                {
                    EMSG2(_(e_invarg2), "exit-cb");
                    return FAIL;
index 81e4617d0e6e897c00d7f14f93ec3ac25c7f1fea..9e2f4bd81bbb403702db8102909e10e85f255a79 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1385,
 /**/
     1384,
 /**/