Mercurial > vim
diff src/ex_docmd.c @ 28195:20ad2fd9f745 v8.2.4623
patch 8.2.4623: Coverity warns for using uninitialized field
Commit: https://github.com/vim/vim/commit/03a297c63f1512ba9783104a343dc7e2024e0bb0
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 25 14:39:51 2022 +0000
patch 8.2.4623: Coverity warns for using uninitialized field
Problem: Coverity warns for using uninitialized field.
Solution: Initialize he field to zero.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Mar 2022 15:45:02 +0100 |
parents | 7456bc6bf077 |
children | cb462f4c6b12 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3906,6 +3906,7 @@ cmd_exists(char_u *name) // For ":2match" and ":3match" we need to skip the number. ea.cmd = (*name == '2' || *name == '3') ? name + 1 : name; ea.cmdidx = (cmdidx_T)0; + ea.flags = 0; p = find_ex_command(&ea, &full, NULL, NULL); if (p == NULL) return 3;