Skip to content

Commit

Permalink
Problem: netbeans: variable used un-initialized (Coverity)
Browse files Browse the repository at this point in the history
Problem:  netbeans: variable used un-initialized (Coverity)
Solution: properly initialize exarg_T struct for use with netbeans

Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
chrisbra committed Jul 11, 2024
1 parent 50dc83c commit 7976b28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/netbeans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7976b28

Please sign in to comment.