To: vim_dev@googlegroups.com Subject: Patch 9.0.1260 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1260 Problem: Coverity warns for possible NULL pointer usage. Solution: Change the condition. Files: src/vim9instr.c *** ../vim-9.0.1259/src/vim9instr.c 2023-01-28 15:19:36.956757160 +0000 --- src/vim9instr.c 2023-01-29 14:09:03.530390128 +0000 *************** *** 1794,1800 **** : ufunc->uf_def_status != UF_NOT_COMPILED ? ISN_DCALL : ISN_UCALL)) == NULL) return FAIL; ! if (isn->isn_type == ISN_METHODCALL) { isn->isn_arg.mfunc = ALLOC_ONE(cmfunc_T); if (isn->isn_arg.mfunc == NULL) --- 1794,1800 ---- : ufunc->uf_def_status != UF_NOT_COMPILED ? ISN_DCALL : ISN_UCALL)) == NULL) return FAIL; ! if (cl != NULL /* isn->isn_type == ISN_METHODCALL */) { isn->isn_arg.mfunc = ALLOC_ONE(cmfunc_T); if (isn->isn_arg.mfunc == NULL) *** ../vim-9.0.1259/src/version.c 2023-01-28 20:57:55.639379390 +0000 --- src/version.c 2023-01-29 14:09:53.990382502 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1260, /**/ -- hundred-and-one symptoms of being an internet addict: 62. If your doorbell rings, you think that new mail has arrived. And then you're disappointed that it's only someone at the door. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///