Mercurial > vim
changeset 35638:313c8000267a v9.1.0561
patch 9.1.0561: netbeans: variable used un-initialized (Coverity)
Commit: https://github.com/vim/vim/commit/b7e09b04424bf2e15adba08c989ec6ddcef6191b
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Jul 11 21:41:23 2024 +0200
patch 9.1.0561: netbeans: variable used un-initialized (Coverity)
Problem: netbeans: variable used un-initialized (Coverity)
(after v9.1.0557)
Solution: properly initialize exarg_T struct for use with netbeans
The actual exarg.cmdidx doesn't really matter, but let's use something,
that is not affected by the recent changes (going through the buffer
list) and use CMD_USER.
closes: #15211
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 11 Jul 2024 21:45:04 +0200 |
parents | 3bc73a6bebf3 |
children | 36c4e640373a |
files | src/netbeans.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/netbeans.c +++ b/src/netbeans.c @@ -1689,8 +1689,10 @@ nb_do_cmd( if (streq((char *)args, "T") && buf->bufp != curbuf) { exarg_T exarg; + CLEAR_FIELD(exarg); exarg.cmd = (char_u *)"goto"; exarg.forceit = FALSE; + exarg.cmdidx = CMD_USER; dosetvisible = TRUE; goto_buffer(&exarg, DOBUF_FIRST, FORWARD, buf->bufp->b_fnum); do_update = 1;