Mercurial > vim
changeset 8184:1f81c571d0e7 v7.4.1385
commit https://github.com/vim/vim/commit/5e83840756f6bb446d5cd8d026c1430b203645f1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 21 23:12:41 2016 +0100
patch 7.4.1385
Problem: Compiler warning for using array.
Solution: Use the right member name. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 21 Feb 2016 23:15:05 +0100 |
parents | d34c263b1fcc |
children | c3a233d90eca |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -10135,7 +10135,7 @@ get_job_options(typval_T *tv, jobopt_T * 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;