diff options
author | Christian Brabandt <cb@256bit.org> | 2024-07-11 21:41:23 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-07-11 21:41:23 +0200 |
commit | b7e09b04424bf2e15adba08c989ec6ddcef6191b (patch) | |
tree | 48699a171cf94622250bea43392b287c80ffcbc1 | |
parent | 8252ef134f5a57e8a07b66ce79068c262a6386d8 (diff) |
patch 9.1.0561: netbeans: variable used un-initialized (Coverity)v9.1.0561
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>
-rw-r--r-- | src/netbeans.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/netbeans.c b/src/netbeans.c index 3b68869195..781caa8994 100644 --- 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; diff --git a/src/version.c b/src/version.c index ddb02d1eed..15fc77584d 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 561, +/**/ 560, /**/ 559, |